1*d9f75844SAndroid Build Coastguard Worker# Copyright (c) 2019 The WebRTC project authors. All Rights Reserved. 2*d9f75844SAndroid Build Coastguard Worker# 3*d9f75844SAndroid Build Coastguard Worker# Use of this source code is governed by a BSD-style license 4*d9f75844SAndroid Build Coastguard Worker# that can be found in the LICENSE file in the root of the source 5*d9f75844SAndroid Build Coastguard Worker# tree. An additional intellectual property rights grant can be found 6*d9f75844SAndroid Build Coastguard Worker# in the file PATENTS. All contributing project authors may 7*d9f75844SAndroid Build Coastguard Worker# be found in the AUTHORS file in the root of the source tree. 8*d9f75844SAndroid Build Coastguard Worker 9*d9f75844SAndroid Build Coastguard Workerimport("../../webrtc.gni") 10*d9f75844SAndroid Build Coastguard Worker 11*d9f75844SAndroid Build Coastguard Workerrtc_library("time_controller") { 12*d9f75844SAndroid Build Coastguard Worker testonly = true 13*d9f75844SAndroid Build Coastguard Worker sources = [ 14*d9f75844SAndroid Build Coastguard Worker "external_time_controller.cc", 15*d9f75844SAndroid Build Coastguard Worker "external_time_controller.h", 16*d9f75844SAndroid Build Coastguard Worker "real_time_controller.cc", 17*d9f75844SAndroid Build Coastguard Worker "real_time_controller.h", 18*d9f75844SAndroid Build Coastguard Worker "simulated_task_queue.cc", 19*d9f75844SAndroid Build Coastguard Worker "simulated_task_queue.h", 20*d9f75844SAndroid Build Coastguard Worker "simulated_thread.cc", 21*d9f75844SAndroid Build Coastguard Worker "simulated_thread.h", 22*d9f75844SAndroid Build Coastguard Worker "simulated_time_controller.cc", 23*d9f75844SAndroid Build Coastguard Worker "simulated_time_controller.h", 24*d9f75844SAndroid Build Coastguard Worker ] 25*d9f75844SAndroid Build Coastguard Worker 26*d9f75844SAndroid Build Coastguard Worker deps = [ 27*d9f75844SAndroid Build Coastguard Worker "../../api:sequence_checker", 28*d9f75844SAndroid Build Coastguard Worker "../../api:time_controller", 29*d9f75844SAndroid Build Coastguard Worker "../../api/task_queue", 30*d9f75844SAndroid Build Coastguard Worker "../../api/task_queue:default_task_queue_factory", 31*d9f75844SAndroid Build Coastguard Worker "../../api/units:time_delta", 32*d9f75844SAndroid Build Coastguard Worker "../../api/units:timestamp", 33*d9f75844SAndroid Build Coastguard Worker "../../rtc_base", 34*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:checks", 35*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:null_socket_server", 36*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:platform_thread_types", 37*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:rtc_base_tests_utils", 38*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:rtc_event", 39*d9f75844SAndroid Build Coastguard Worker "../../rtc_base/synchronization:mutex", 40*d9f75844SAndroid Build Coastguard Worker "../../rtc_base/synchronization:yield_policy", 41*d9f75844SAndroid Build Coastguard Worker "../../system_wrappers", 42*d9f75844SAndroid Build Coastguard Worker ] 43*d9f75844SAndroid Build Coastguard Worker absl_deps = [ 44*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/functional:any_invocable", 45*d9f75844SAndroid Build Coastguard Worker "//third_party/abseil-cpp/absl/strings", 46*d9f75844SAndroid Build Coastguard Worker ] 47*d9f75844SAndroid Build Coastguard Worker} 48*d9f75844SAndroid Build Coastguard Worker 49*d9f75844SAndroid Build Coastguard Workerif (rtc_include_tests) { 50*d9f75844SAndroid Build Coastguard Worker rtc_library("time_controller_unittests") { 51*d9f75844SAndroid Build Coastguard Worker testonly = true 52*d9f75844SAndroid Build Coastguard Worker sources = [ 53*d9f75844SAndroid Build Coastguard Worker "external_time_controller_unittest.cc", 54*d9f75844SAndroid Build Coastguard Worker "simulated_time_controller_unittest.cc", 55*d9f75844SAndroid Build Coastguard Worker "time_controller_conformance_test.cc", 56*d9f75844SAndroid Build Coastguard Worker ] 57*d9f75844SAndroid Build Coastguard Worker deps = [ 58*d9f75844SAndroid Build Coastguard Worker ":time_controller", 59*d9f75844SAndroid Build Coastguard Worker "../:test_support", 60*d9f75844SAndroid Build Coastguard Worker "../../api:time_controller", 61*d9f75844SAndroid Build Coastguard Worker "../../api/units:time_delta", 62*d9f75844SAndroid Build Coastguard Worker "../../rtc_base", 63*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:macromagic", 64*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:rtc_event", 65*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:rtc_task_queue", 66*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:task_queue_for_test", 67*d9f75844SAndroid Build Coastguard Worker "../../rtc_base:threading", 68*d9f75844SAndroid Build Coastguard Worker "../../rtc_base/synchronization:mutex", 69*d9f75844SAndroid Build Coastguard Worker "../../rtc_base/task_utils:repeating_task", 70*d9f75844SAndroid Build Coastguard Worker ] 71*d9f75844SAndroid Build Coastguard Worker } 72*d9f75844SAndroid Build Coastguard Worker} 73