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) { |
| 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", |
| 24 | "../../api/task_queue:global_task_queue_factory", |
| 25 | "../../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", |
| 32 | "../../rtc_base:sequenced_task_checker", |
| 33 | "../../rtc_base/synchronization:yield_policy", |
| 34 | "../../rtc_base/task_utils:to_queued_task", |
| 35 | "../../system_wrappers", |
| 36 | "//third_party/abseil-cpp/absl/memory", |
| 37 | "//third_party/abseil-cpp/absl/strings", |
| 38 | ] |
| 39 | } |
| 40 | rtc_source_set("time_controller_unittests") { |
| 41 | testonly = true |
| 42 | sources = [ |
| 43 | "simulated_time_controller_unittest.cc", |
| 44 | ] |
| 45 | deps = [ |
| 46 | ":time_controller", |
| 47 | "../:test_support", |
| 48 | "../../rtc_base:rtc_base_approved", |
| 49 | "../../rtc_base:rtc_task_queue", |
| 50 | "../../rtc_base/task_utils:repeating_task", |
| 51 | "//third_party/abseil-cpp/absl/memory", |
| 52 | ] |
| 53 | } |
| 54 | } |