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 ":to_queued_task", 18 "..:logging", 19 "..:thread_checker", 20 "..:timeutils", 21 "../../api/task_queue", 22 "../../api/units:time_delta", 23 "../../api/units:timestamp", 24 "../../system_wrappers:system_wrappers", 25 "../synchronization:sequence_checker", 26 ] 27 absl_deps = [ "//third_party/abseil-cpp/absl/memory" ] 28} 29 30rtc_library("pending_task_safety_flag") { 31 sources = [ 32 "pending_task_safety_flag.cc", 33 "pending_task_safety_flag.h", 34 ] 35 deps = [ 36 "..:checks", 37 "..:refcount", 38 "..:thread_checker", 39 "../../api:scoped_refptr", 40 "../synchronization:sequence_checker", 41 ] 42} 43 44rtc_source_set("to_queued_task") { 45 sources = [ "to_queued_task.h" ] 46 deps = [ 47 ":pending_task_safety_flag", 48 "../../api/task_queue", 49 ] 50} 51 52if (rtc_include_tests) { 53 rtc_library("pending_task_safety_flag_unittests") { 54 testonly = true 55 sources = [ "pending_task_safety_flag_unittest.cc" ] 56 deps = [ 57 ":pending_task_safety_flag", 58 ":to_queued_task", 59 "..:rtc_base_approved", 60 "..:rtc_task_queue", 61 "..:task_queue_for_test", 62 "../../test:test_support", 63 ] 64 } 65 66 rtc_library("repeating_task_unittests") { 67 testonly = true 68 sources = [ "repeating_task_unittest.cc" ] 69 deps = [ 70 ":repeating_task", 71 "..:rtc_base_approved", 72 "..:rtc_task_queue", 73 "..:task_queue_for_test", 74 "../../test:test_support", 75 ] 76 } 77 78 rtc_library("to_queued_task_unittests") { 79 testonly = true 80 sources = [ "to_queued_task_unittest.cc" ] 81 deps = [ 82 ":to_queued_task", 83 "../../api/task_queue", 84 "../../test:test_support", 85 ] 86 absl_deps = [ "//third_party/abseil-cpp/absl/memory" ] 87 } 88} 89