blob: aa12477f0bd557b3be24c618b31197301df4ffb5 [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",
Sebastian Jansson0d617cc2019-03-22 15:22:16 +010036 "//third_party/abseil-cpp/absl/strings",
37 ]
38 }
39 rtc_source_set("time_controller_unittests") {
40 testonly = true
41 sources = [
42 "simulated_time_controller_unittest.cc",
43 ]
44 deps = [
45 ":time_controller",
46 "../:test_support",
47 "../../rtc_base:rtc_base_approved",
48 "../../rtc_base:rtc_task_queue",
49 "../../rtc_base/task_utils:repeating_task",
Sebastian Jansson0d617cc2019-03-22 15:22:16 +010050 ]
51 }
52}