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 9import("../../webrtc.gni") 10 11rtc_library("repeating_task") { 12 sources = [ 13 "repeating_task.cc", 14 "repeating_task.h", 15 ] 16 deps = [ 17 "..:logging", 18 "..:timeutils", 19 "../../api:sequence_checker", 20 "../../api/task_queue", 21 "../../api/task_queue:pending_task_safety_flag", 22 "../../api/units:time_delta", 23 "../../api/units:timestamp", 24 "../../system_wrappers:system_wrappers", 25 ] 26 absl_deps = [ "//third_party/abseil-cpp/absl/functional:any_invocable" ] 27} 28 29if (rtc_include_tests) { 30 rtc_library("repeating_task_unittests") { 31 testonly = true 32 sources = [ "repeating_task_unittest.cc" ] 33 deps = [ 34 ":repeating_task", 35 "..:rtc_event", 36 "..:rtc_task_queue", 37 "..:task_queue_for_test", 38 "../../api/task_queue", 39 "../../api/units:time_delta", 40 "../../api/units:timestamp", 41 "../../system_wrappers:system_wrappers", 42 "../../test:test_support", 43 ] 44 absl_deps = [ "//third_party/abseil-cpp/absl/functional:any_invocable" ] 45 } 46} 47