blob: 8f552a8452170ce47e985c666288eb3ee4d8bcd5 [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
philipel52c62df2020-01-29 10:16:44 +010011rtc_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",
philipel52c62df2020-01-29 10:16:44 +010018 "simulated_task_queue.cc",
19 "simulated_task_queue.h",
20 "simulated_thread.cc",
21 "simulated_thread.h",
22 "simulated_time_controller.cc",
23 "simulated_time_controller.h",
24 ]
Sebastian Jansson0d617cc2019-03-22 15:22:16 +010025
philipel52c62df2020-01-29 10:16:44 +010026 deps = [
Artem Titovd15a5752021-02-10 14:31:24 +010027 "../../api:sequence_checker",
philipel52c62df2020-01-29 10:16:44 +010028 "../../api:time_controller",
29 "../../api/task_queue",
30 "../../api/task_queue:default_task_queue_factory",
31 "../../api/units:time_delta",
32 "../../api/units:timestamp",
philipel52c62df2020-01-29 10:16:44 +010033 "../../rtc_base",
34 "../../rtc_base:checks",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +010035 "../../rtc_base:null_socket_server",
Florent Castelli45a05992022-04-14 12:18:28 +020036 "../../rtc_base:platform_thread_types",
philipel52c62df2020-01-29 10:16:44 +010037 "../../rtc_base:rtc_base_tests_utils",
38 "../../rtc_base:rtc_event",
Markus Handelle56976d2020-07-08 17:34:37 +020039 "../../rtc_base/synchronization:mutex",
philipel52c62df2020-01-29 10:16:44 +010040 "../../rtc_base/synchronization:yield_policy",
philipel52c62df2020-01-29 10:16:44 +010041 "../../system_wrappers",
philipel52c62df2020-01-29 10:16:44 +010042 ]
Danil Chapovalov9c125c62022-07-07 20:29:30 +020043 absl_deps = [
44 "//third_party/abseil-cpp/absl/functional:any_invocable",
45 "//third_party/abseil-cpp/absl/strings",
46 ]
philipel52c62df2020-01-29 10:16:44 +010047}
48
49if (rtc_include_tests) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +020050 rtc_library("time_controller_unittests") {
Sebastian Jansson0d617cc2019-03-22 15:22:16 +010051 testonly = true
52 sources = [
Bjorn A Mellemc4f86542019-11-21 10:37:18 -080053 "external_time_controller_unittest.cc",
Sebastian Jansson0d617cc2019-03-22 15:22:16 +010054 "simulated_time_controller_unittest.cc",
Artem Titov7ade6592020-07-24 21:32:38 +020055 "time_controller_conformance_test.cc",
Sebastian Jansson0d617cc2019-03-22 15:22:16 +010056 ]
57 deps = [
58 ":time_controller",
59 "../:test_support",
Artem Titov7ade6592020-07-24 21:32:38 +020060 "../../api:time_controller",
61 "../../api/units:time_delta",
62 "../../rtc_base",
Florent Castelli4467ad72022-04-04 15:18:46 +020063 "../../rtc_base:macromagic",
Florent Castelli33d31fb2022-04-04 16:57:52 +020064 "../../rtc_base:rtc_event",
Sebastian Jansson0d617cc2019-03-22 15:22:16 +010065 "../../rtc_base:rtc_task_queue",
Danil Chapovalov2aaef452022-08-12 15:55:11 +020066 "../../rtc_base:task_queue_for_test",
Mirko Bonadeie5f4c6b2021-01-15 10:41:01 +010067 "../../rtc_base:threading",
Artem Titov7ade6592020-07-24 21:32:38 +020068 "../../rtc_base/synchronization:mutex",
Sebastian Jansson0d617cc2019-03-22 15:22:16 +010069 "../../rtc_base/task_utils:repeating_task",
Sebastian Jansson0d617cc2019-03-22 15:22:16 +010070 ]
71 }
72}