blob: 5a159c713f8b78b2ee20607b86de15ef2f83944f [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
11if (rtc_include_tests) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +020012 rtc_library("time_controller") {
Sebastian Jansson0d617cc2019-03-22 15:22:16 +010013 testonly = true
14 sources = [
Bjorn A Mellemc4f86542019-11-21 10:37:18 -080015 "external_time_controller.cc",
16 "external_time_controller.h",
Sebastian Jansson0d617cc2019-03-22 15:22:16 +010017 "real_time_controller.cc",
18 "real_time_controller.h",
Sebastian Jansson53cd9e22020-01-13 10:33:19 +010019 "simulated_process_thread.cc",
20 "simulated_process_thread.h",
21 "simulated_task_queue.cc",
22 "simulated_task_queue.h",
Sebastian Janssonfc8279d2020-01-16 11:45:59 +010023 "simulated_thread.cc",
24 "simulated_thread.h",
Sebastian Jansson0d617cc2019-03-22 15:22:16 +010025 "simulated_time_controller.cc",
26 "simulated_time_controller.h",
Sebastian Jansson0d617cc2019-03-22 15:22:16 +010027 ]
28
29 deps = [
Bjorn A Mellemc4f86542019-11-21 10:37:18 -080030 "../../api:time_controller",
Sebastian Jansson0d617cc2019-03-22 15:22:16 +010031 "../../api/task_queue",
Danil Chapovalov28de7cf2019-04-12 19:25:06 +020032 "../../api/task_queue:default_task_queue_factory",
Sebastian Jansson0d617cc2019-03-22 15:22:16 +010033 "../../api/units:time_delta",
34 "../../api/units:timestamp",
35 "../../modules:module_api",
36 "../../modules/utility:utility",
37 "../../rtc_base",
Sebastian Janssonfc8279d2020-01-16 11:45:59 +010038 "../../rtc_base:checks",
Sebastian Jansson0d617cc2019-03-22 15:22:16 +010039 "../../rtc_base:rtc_base_tests_utils",
40 "../../rtc_base:rtc_event",
Sebastian Janssonb55015e2019-04-09 13:44:04 +020041 "../../rtc_base/synchronization:sequence_checker",
Sebastian Jansson0d617cc2019-03-22 15:22:16 +010042 "../../rtc_base/synchronization:yield_policy",
43 "../../rtc_base/task_utils:to_queued_task",
44 "../../system_wrappers",
Sebastian Jansson0d617cc2019-03-22 15:22:16 +010045 "//third_party/abseil-cpp/absl/strings",
46 ]
47 }
Mirko Bonadei86d053c2019-10-17 21:32:04 +020048 rtc_library("time_controller_unittests") {
Sebastian Jansson0d617cc2019-03-22 15:22:16 +010049 testonly = true
50 sources = [
Bjorn A Mellemc4f86542019-11-21 10:37:18 -080051 "external_time_controller_unittest.cc",
Sebastian Jansson0d617cc2019-03-22 15:22:16 +010052 "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 Jansson0d617cc2019-03-22 15:22:16 +010060 ]
61 }
62}