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 | |
| 11 | if (rtc_include_tests) { |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 12 | rtc_library("time_controller") { |
Sebastian Jansson | 0d617cc | 2019-03-22 15:22:16 +0100 | [diff] [blame] | 13 | testonly = true |
| 14 | sources = [ |
Bjorn A Mellem | c4f8654 | 2019-11-21 10:37:18 -0800 | [diff] [blame] | 15 | "external_time_controller.cc", |
| 16 | "external_time_controller.h", |
Sebastian Jansson | 0d617cc | 2019-03-22 15:22:16 +0100 | [diff] [blame] | 17 | "real_time_controller.cc", |
| 18 | "real_time_controller.h", |
Sebastian Jansson | 53cd9e2 | 2020-01-13 10:33:19 +0100 | [diff] [blame] | 19 | "simulated_process_thread.cc", |
| 20 | "simulated_process_thread.h", |
| 21 | "simulated_task_queue.cc", |
| 22 | "simulated_task_queue.h", |
Sebastian Jansson | fc8279d | 2020-01-16 11:45:59 +0100 | [diff] [blame^] | 23 | "simulated_thread.cc", |
| 24 | "simulated_thread.h", |
Sebastian Jansson | 0d617cc | 2019-03-22 15:22:16 +0100 | [diff] [blame] | 25 | "simulated_time_controller.cc", |
| 26 | "simulated_time_controller.h", |
Sebastian Jansson | 0d617cc | 2019-03-22 15:22:16 +0100 | [diff] [blame] | 27 | ] |
| 28 | |
| 29 | deps = [ |
Bjorn A Mellem | c4f8654 | 2019-11-21 10:37:18 -0800 | [diff] [blame] | 30 | "../../api:time_controller", |
Sebastian Jansson | 0d617cc | 2019-03-22 15:22:16 +0100 | [diff] [blame] | 31 | "../../api/task_queue", |
Danil Chapovalov | 28de7cf | 2019-04-12 19:25:06 +0200 | [diff] [blame] | 32 | "../../api/task_queue:default_task_queue_factory", |
Sebastian Jansson | 0d617cc | 2019-03-22 15:22:16 +0100 | [diff] [blame] | 33 | "../../api/units:time_delta", |
| 34 | "../../api/units:timestamp", |
| 35 | "../../modules:module_api", |
| 36 | "../../modules/utility:utility", |
| 37 | "../../rtc_base", |
Sebastian Jansson | fc8279d | 2020-01-16 11:45:59 +0100 | [diff] [blame^] | 38 | "../../rtc_base:checks", |
Sebastian Jansson | 0d617cc | 2019-03-22 15:22:16 +0100 | [diff] [blame] | 39 | "../../rtc_base:rtc_base_tests_utils", |
| 40 | "../../rtc_base:rtc_event", |
Sebastian Jansson | b55015e | 2019-04-09 13:44:04 +0200 | [diff] [blame] | 41 | "../../rtc_base/synchronization:sequence_checker", |
Sebastian Jansson | 0d617cc | 2019-03-22 15:22:16 +0100 | [diff] [blame] | 42 | "../../rtc_base/synchronization:yield_policy", |
| 43 | "../../rtc_base/task_utils:to_queued_task", |
| 44 | "../../system_wrappers", |
Sebastian Jansson | 0d617cc | 2019-03-22 15:22:16 +0100 | [diff] [blame] | 45 | "//third_party/abseil-cpp/absl/strings", |
| 46 | ] |
| 47 | } |
Mirko Bonadei | 86d053c | 2019-10-17 21:32:04 +0200 | [diff] [blame] | 48 | rtc_library("time_controller_unittests") { |
Sebastian Jansson | 0d617cc | 2019-03-22 15:22:16 +0100 | [diff] [blame] | 49 | testonly = true |
| 50 | sources = [ |
Bjorn A Mellem | c4f8654 | 2019-11-21 10:37:18 -0800 | [diff] [blame] | 51 | "external_time_controller_unittest.cc", |
Sebastian Jansson | 0d617cc | 2019-03-22 15:22:16 +0100 | [diff] [blame] | 52 | "simulated_time_controller_unittest.cc", |
| 53 | ] |
| 54 | deps = [ |
| 55 | ":time_controller", |
| 56 | "../:test_support", |
| 57 | "../../rtc_base:rtc_base_approved", |
| 58 | "../../rtc_base:rtc_task_queue", |
| 59 | "../../rtc_base/task_utils:repeating_task", |
Sebastian Jansson | 0d617cc | 2019-03-22 15:22:16 +0100 | [diff] [blame] | 60 | ] |
| 61 | } |
| 62 | } |