blob: 252dca956ba06f1d3d1688b47b15a645015de177 [file] [log] [blame]
Sebastian Jansson0d617cc2019-03-22 15:22:16 +01001# 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
11if (rtc_include_tests) {
12 rtc_source_set("time_controller") {
13 testonly = true
14 sources = [
15 "real_time_controller.cc",
16 "real_time_controller.h",
17 "simulated_time_controller.cc",
18 "simulated_time_controller.h",
19 "time_controller.h",
20 ]
21
22 deps = [
23 "../../api/task_queue",
Danil Chapovalov28de7cf2019-04-12 19:25:06 +020024 "../../api/task_queue:default_task_queue_factory",
Sebastian Jansson0d617cc2019-03-22 15:22:16 +010025 "../../api/units:time_delta",
26 "../../api/units:timestamp",
27 "../../modules:module_api",
28 "../../modules/utility:utility",
29 "../../rtc_base",
30 "../../rtc_base:rtc_base_tests_utils",
31 "../../rtc_base:rtc_event",
Sebastian Janssonb55015e2019-04-09 13:44:04 +020032 "../../rtc_base/synchronization:sequence_checker",
Sebastian Jansson0d617cc2019-03-22 15:22:16 +010033 "../../rtc_base/synchronization:yield_policy",
34 "../../rtc_base/task_utils:to_queued_task",
35 "../../system_wrappers",
36 "//third_party/abseil-cpp/absl/memory",
37 "//third_party/abseil-cpp/absl/strings",
38 ]
39 }
40 rtc_source_set("time_controller_unittests") {
41 testonly = true
42 sources = [
43 "simulated_time_controller_unittest.cc",
44 ]
45 deps = [
46 ":time_controller",
47 "../:test_support",
48 "../../rtc_base:rtc_base_approved",
49 "../../rtc_base:rtc_task_queue",
50 "../../rtc_base/task_utils:repeating_task",
51 "//third_party/abseil-cpp/absl/memory",
52 ]
53 }
54}