2019-03-22 15:22:16 +01:00
|
|
|
# Copyright (c) 2019 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a BSD-style license
|
|
|
|
|
# that can be found in the LICENSE file in the root of the source
|
|
|
|
|
# tree. An additional intellectual property rights grant can be found
|
|
|
|
|
# in the file PATENTS. All contributing project authors may
|
|
|
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
|
|
|
|
|
import("../../webrtc.gni")
|
|
|
|
|
|
2020-01-29 10:16:44 +01:00
|
|
|
rtc_library("time_controller") {
|
|
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"real_time_controller.cc",
|
|
|
|
|
"real_time_controller.h",
|
|
|
|
|
"simulated_task_queue.cc",
|
|
|
|
|
"simulated_task_queue.h",
|
|
|
|
|
"simulated_thread.cc",
|
|
|
|
|
"simulated_thread.h",
|
|
|
|
|
"simulated_time_controller.cc",
|
|
|
|
|
"simulated_time_controller.h",
|
|
|
|
|
]
|
2019-03-22 15:22:16 +01:00
|
|
|
|
2020-01-29 10:16:44 +01:00
|
|
|
deps = [
|
2023-12-05 14:47:22 +01:00
|
|
|
"../../api:field_trials_view",
|
2021-02-10 14:31:24 +01:00
|
|
|
"../../api:sequence_checker",
|
2020-01-29 10:16:44 +01:00
|
|
|
"../../api:time_controller",
|
|
|
|
|
"../../api/task_queue",
|
|
|
|
|
"../../api/task_queue:default_task_queue_factory",
|
|
|
|
|
"../../api/units:time_delta",
|
|
|
|
|
"../../api/units:timestamp",
|
|
|
|
|
"../../rtc_base:checks",
|
2021-01-15 10:41:01 +01:00
|
|
|
"../../rtc_base:null_socket_server",
|
2022-04-14 12:18:28 +02:00
|
|
|
"../../rtc_base:platform_thread_types",
|
2020-01-29 10:16:44 +01:00
|
|
|
"../../rtc_base:rtc_base_tests_utils",
|
|
|
|
|
"../../rtc_base:rtc_event",
|
2020-07-08 17:34:37 +02:00
|
|
|
"../../rtc_base/synchronization:mutex",
|
2020-01-29 10:16:44 +01:00
|
|
|
"../../rtc_base/synchronization:yield_policy",
|
|
|
|
|
"../../system_wrappers",
|
2022-07-07 20:29:30 +02:00
|
|
|
"//third_party/abseil-cpp/absl/functional:any_invocable",
|
2024-05-23 11:21:53 +00:00
|
|
|
"//third_party/abseil-cpp/absl/strings:string_view",
|
2022-07-07 20:29:30 +02:00
|
|
|
]
|
2020-01-29 10:16:44 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rtc_include_tests) {
|
2019-10-17 21:32:04 +02:00
|
|
|
rtc_library("time_controller_unittests") {
|
2019-03-22 15:22:16 +01:00
|
|
|
testonly = true
|
|
|
|
|
sources = [
|
|
|
|
|
"simulated_time_controller_unittest.cc",
|
2020-07-24 21:32:38 +02:00
|
|
|
"time_controller_conformance_test.cc",
|
2019-03-22 15:22:16 +01:00
|
|
|
]
|
|
|
|
|
deps = [
|
|
|
|
|
":time_controller",
|
|
|
|
|
"../:test_support",
|
2020-07-24 21:32:38 +02:00
|
|
|
"../../api:time_controller",
|
2024-01-08 17:57:32 +01:00
|
|
|
"../../api/task_queue",
|
2020-07-24 21:32:38 +02:00
|
|
|
"../../api/units:time_delta",
|
2022-04-04 15:18:46 +02:00
|
|
|
"../../rtc_base:macromagic",
|
2022-04-04 16:57:52 +02:00
|
|
|
"../../rtc_base:rtc_event",
|
2022-08-12 15:55:11 +02:00
|
|
|
"../../rtc_base:task_queue_for_test",
|
2021-01-15 10:41:01 +01:00
|
|
|
"../../rtc_base:threading",
|
2020-07-24 21:32:38 +02:00
|
|
|
"../../rtc_base/synchronization:mutex",
|
2019-03-22 15:22:16 +01:00
|
|
|
"../../rtc_base/task_utils:repeating_task",
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|