You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.6 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. # Copyright (c) 2019 The WebRTC project authors. All Rights Reserved.
  2. #
  3. # Use of this source code is governed by a BSD-style license
  4. # that can be found in the LICENSE file in the root of the source
  5. # tree. An additional intellectual property rights grant can be found
  6. # in the file PATENTS. All contributing project authors may
  7. # be found in the AUTHORS file in the root of the source tree.
  8. import("../../webrtc.gni")
  9. if (rtc_include_tests) {
  10. rtc_library("time_controller") {
  11. testonly = true
  12. sources = [
  13. "real_time_controller.cc",
  14. "real_time_controller.h",
  15. "simulated_time_controller.cc",
  16. "simulated_time_controller.h",
  17. "time_controller.h",
  18. ]
  19. deps = [
  20. "../../api/task_queue",
  21. "../../api/task_queue:default_task_queue_factory",
  22. "../../api/units:time_delta",
  23. "../../api/units:timestamp",
  24. "../../modules:module_api",
  25. "../../modules/utility:utility",
  26. "../../rtc_base",
  27. "../../rtc_base:rtc_base_tests_utils",
  28. "../../rtc_base:rtc_event",
  29. "../../rtc_base/synchronization:sequence_checker",
  30. "../../rtc_base/synchronization:yield_policy",
  31. "../../rtc_base/task_utils:to_queued_task",
  32. "../../system_wrappers",
  33. "//third_party/abseil-cpp/absl/strings",
  34. ]
  35. }
  36. rtc_library("time_controller_unittests") {
  37. testonly = true
  38. sources = [
  39. "simulated_time_controller_unittest.cc",
  40. ]
  41. deps = [
  42. ":time_controller",
  43. "../:test_support",
  44. "../../rtc_base:rtc_base_approved",
  45. "../../rtc_base:rtc_task_queue",
  46. "../../rtc_base/task_utils:repeating_task",
  47. ]
  48. }
  49. }