Sebastian Jansson | 0d617cc | 2019-03-22 15:22:16 +0100 | [diff] [blame] | 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 | |
| 9 | import("../../webrtc.gni") |
| 10 | |
philipel | 52c62df | 2020-01-29 10:16:44 +0100 | [diff] [blame] | 11 | rtc_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", |
philipel | 52c62df | 2020-01-29 10:16:44 +0100 | [diff] [blame] | 18 | "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 Jansson | 0d617cc | 2019-03-22 15:22:16 +0100 | [diff] [blame] | 25 | |
philipel | 52c62df | 2020-01-29 10:16:44 +0100 | [diff] [blame] | 26 | deps = [ |
Artem Titov | d15a575 | 2021-02-10 14:31:24 +0100 | [diff] [blame] | 27 | "../../api:sequence_checker", |
philipel | 52c62df | 2020-01-29 10:16:44 +0100 | [diff] [blame] | 28 | "../../api:time_controller", |
| 29 | "../../api/task_queue", |
| 30 | "../../api/task_queue:default_task_queue_factory", |
| 31 | "../../api/units:time_delta", |
| 32 | "../../api/units:timestamp", |
philipel | 52c62df | 2020-01-29 10:16:44 +0100 | [diff] [blame] | 33 | "../../rtc_base", |
| 34 | "../../rtc_base:checks", |
Mirko Bonadei | e5f4c6b | 2021-01-15 10:41:01 +0100 | [diff] [blame] | 35 | "../../rtc_base:null_socket_server", |
Florent Castelli | 45a0599 | 2022-04-14 12:18:28 +0200 | [diff] [blame] | 36 | "../../rtc_base:platform_thread_types", |
philipel | 52c62df | 2020-01-29 10:16:44 +0100 | [diff] [blame] | 37 | "../../rtc_base:rtc_base_tests_utils", |
| 38 | "../../rtc_base:rtc_event", |
Markus Handell | e56976d | 2020-07-08 17:34:37 +0200 | [diff] [blame] | 39 | "../../rtc_base/synchronization:mutex", |
philipel | 52c62df | 2020-01-29 10:16:44 +0100 | [diff] [blame] | 40 | "../../rtc_base/synchronization:yield_policy", |
philipel | 52c62df | 2020-01-29 10:16:44 +0100 | [diff] [blame] | 41 | "../../system_wrappers", |
philipel | 52c62df | 2020-01-29 10:16:44 +0100 | [diff] [blame] | 42 | ] |
Danil Chapovalov | 9c125c6 | 2022-07-07 20:29:30 +0200 | [diff] [blame] | 43 | absl_deps = [ |
| 44 | "//third_party/abseil-cpp/absl/functional:any_invocable", |
| 45 | "//third_party/abseil-cpp/absl/strings", |
| 46 | ] |
philipel | 52c62df | 2020-01-29 10:16:44 +0100 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | if (rtc_include_tests) { |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 50 | rtc_library("time_controller_unittests") { |
Sebastian Jansson | 0d617cc | 2019-03-22 15:22:16 +0100 | [diff] [blame] | 51 | testonly = true |
| 52 | sources = [ |
Bjorn A Mellem | c4f8654 | 2019-11-21 10:37:18 -0800 | [diff] [blame] | 53 | "external_time_controller_unittest.cc", |
Sebastian Jansson | 0d617cc | 2019-03-22 15:22:16 +0100 | [diff] [blame] | 54 | "simulated_time_controller_unittest.cc", |
Artem Titov | 7ade659 | 2020-07-24 21:32:38 +0200 | [diff] [blame] | 55 | "time_controller_conformance_test.cc", |
Sebastian Jansson | 0d617cc | 2019-03-22 15:22:16 +0100 | [diff] [blame] | 56 | ] |
| 57 | deps = [ |
| 58 | ":time_controller", |
| 59 | "../:test_support", |
Artem Titov | 7ade659 | 2020-07-24 21:32:38 +0200 | [diff] [blame] | 60 | "../../api:time_controller", |
| 61 | "../../api/units:time_delta", |
| 62 | "../../rtc_base", |
Florent Castelli | 4467ad7 | 2022-04-04 15:18:46 +0200 | [diff] [blame] | 63 | "../../rtc_base:macromagic", |
Florent Castelli | 33d31fb | 2022-04-04 16:57:52 +0200 | [diff] [blame] | 64 | "../../rtc_base:rtc_event", |
Sebastian Jansson | 0d617cc | 2019-03-22 15:22:16 +0100 | [diff] [blame] | 65 | "../../rtc_base:rtc_task_queue", |
Danil Chapovalov | 2aaef45 | 2022-08-12 15:55:11 +0200 | [diff] [blame] | 66 | "../../rtc_base:task_queue_for_test", |
Mirko Bonadei | e5f4c6b | 2021-01-15 10:41:01 +0100 | [diff] [blame] | 67 | "../../rtc_base:threading", |
Artem Titov | 7ade659 | 2020-07-24 21:32:38 +0200 | [diff] [blame] | 68 | "../../rtc_base/synchronization:mutex", |
Sebastian Jansson | 0d617cc | 2019-03-22 15:22:16 +0100 | [diff] [blame] | 69 | "../../rtc_base/task_utils:repeating_task", |
Sebastian Jansson | 0d617cc | 2019-03-22 15:22:16 +0100 | [diff] [blame] | 70 | ] |
| 71 | } |
| 72 | } |