1# Copyright (c) 2021 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 11rtc_library("timer") { 12 deps = [ 13 "../../../api:array_view", 14 "../../../api/task_queue:task_queue", 15 "../../../rtc_base:checks", 16 "../../../rtc_base:strong_alias", 17 "../../../rtc_base/containers:flat_map", 18 "../../../rtc_base/containers:flat_set", 19 "../public:socket", 20 "../public:types", 21 ] 22 sources = [ 23 "fake_timeout.h", 24 "timer.cc", 25 "timer.h", 26 ] 27 absl_deps = [ 28 "//third_party/abseil-cpp/absl/memory", 29 "//third_party/abseil-cpp/absl/strings", 30 "//third_party/abseil-cpp/absl/types:optional", 31 ] 32} 33 34rtc_library("task_queue_timeout") { 35 deps = [ 36 "../../../api:array_view", 37 "../../../api/task_queue:pending_task_safety_flag", 38 "../../../api/task_queue:task_queue", 39 "../../../api/units:time_delta", 40 "../../../rtc_base:checks", 41 "../../../rtc_base:logging", 42 "../public:socket", 43 "../public:types", 44 ] 45 sources = [ 46 "task_queue_timeout.cc", 47 "task_queue_timeout.h", 48 ] 49} 50 51if (rtc_include_tests) { 52 rtc_library("dcsctp_timer_unittests") { 53 testonly = true 54 55 defines = [] 56 deps = [ 57 ":task_queue_timeout", 58 ":timer", 59 "../../../api:array_view", 60 "../../../api/task_queue:task_queue", 61 "../../../api/task_queue/test:mock_task_queue_base", 62 "../../../rtc_base:checks", 63 "../../../rtc_base:gunit_helpers", 64 "../../../test:test_support", 65 "../../../test/time_controller:time_controller", 66 "../public:socket", 67 ] 68 sources = [ 69 "task_queue_timeout_test.cc", 70 "timer_test.cc", 71 ] 72 absl_deps = [ "//third_party/abseil-cpp/absl/types:optional" ] 73 } 74} 75