• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
9import("../../webrtc.gni")
10
11rtc_library("time_controller") {
12  testonly = true
13  sources = [
14    "external_time_controller.cc",
15    "external_time_controller.h",
16    "real_time_controller.cc",
17    "real_time_controller.h",
18    "simulated_process_thread.cc",
19    "simulated_process_thread.h",
20    "simulated_task_queue.cc",
21    "simulated_task_queue.h",
22    "simulated_thread.cc",
23    "simulated_thread.h",
24    "simulated_time_controller.cc",
25    "simulated_time_controller.h",
26  ]
27
28  deps = [
29    "../../api:time_controller",
30    "../../api/task_queue",
31    "../../api/task_queue:default_task_queue_factory",
32    "../../api/units:time_delta",
33    "../../api/units:timestamp",
34    "../../modules:module_api",
35    "../../modules/utility:utility",
36    "../../rtc_base",
37    "../../rtc_base:checks",
38    "../../rtc_base:rtc_base_tests_utils",
39    "../../rtc_base:rtc_event",
40    "../../rtc_base/synchronization:mutex",
41    "../../rtc_base/synchronization:sequence_checker",
42    "../../rtc_base/synchronization:yield_policy",
43    "../../rtc_base/task_utils:to_queued_task",
44    "../../system_wrappers",
45  ]
46  absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
47}
48
49if (rtc_include_tests) {
50  rtc_library("time_controller_unittests") {
51    testonly = true
52    sources = [
53      "external_time_controller_unittest.cc",
54      "simulated_time_controller_unittest.cc",
55    ]
56    deps = [
57      ":time_controller",
58      "../:test_support",
59      "../../rtc_base:rtc_base_approved",
60      "../../rtc_base:rtc_task_queue",
61      "../../rtc_base/task_utils:repeating_task",
62    ]
63  }
64}
65