blob: 8d8a45858d84f3ca1673ac85c7dbc87428cdea95 [file] [log] [blame]
Sebastian Janssonecb68972019-01-18 10:30:54 +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
Mirko Bonadei86d053c2019-10-17 21:32:04 +020011rtc_library("repeating_task") {
Sebastian Janssonecb68972019-01-18 10:30:54 +010012 sources = [
13 "repeating_task.cc",
14 "repeating_task.h",
15 ]
16 deps = [
Danil Chapovalov4423c362019-03-06 18:41:39 +010017 ":to_queued_task",
Sebastian Janssonecb68972019-01-18 10:30:54 +010018 "..:logging",
Sebastian Janssonecb68972019-01-18 10:30:54 +010019 "..:thread_checker",
20 "..:timeutils",
Danil Chapovalov4423c362019-03-06 18:41:39 +010021 "../../api/task_queue",
Sebastian Janssonecb68972019-01-18 10:30:54 +010022 "../../api/units:time_delta",
23 "../../api/units:timestamp",
Sebastian Janssonb55015e2019-04-09 13:44:04 +020024 "../synchronization:sequence_checker",
Sebastian Janssonecb68972019-01-18 10:30:54 +010025 "//third_party/abseil-cpp/absl/memory",
26 ]
27}
28
Danil Chapovalov3b548dd2019-03-01 14:58:44 +010029rtc_source_set("to_queued_task") {
30 sources = [
31 "to_queued_task.h",
32 ]
33 deps = [
34 "../../api/task_queue",
Danil Chapovalov3b548dd2019-03-01 14:58:44 +010035 ]
36}
37
Sebastian Janssonecb68972019-01-18 10:30:54 +010038if (rtc_include_tests) {
Mirko Bonadei86d053c2019-10-17 21:32:04 +020039 rtc_library("repeating_task_unittests") {
Sebastian Janssonecb68972019-01-18 10:30:54 +010040 testonly = true
41 sources = [
42 "repeating_task_unittest.cc",
43 ]
44 deps = [
45 ":repeating_task",
46 "..:rtc_base_approved",
Danil Chapovalov4423c362019-03-06 18:41:39 +010047 "..:rtc_task_queue",
Danil Chapovalov07122bc2019-03-26 14:37:01 +010048 "..:task_queue_for_test",
Sebastian Janssonecb68972019-01-18 10:30:54 +010049 "../../test:test_support",
Sebastian Janssonecb68972019-01-18 10:30:54 +010050 ]
51 }
Danil Chapovalov3b548dd2019-03-01 14:58:44 +010052
Mirko Bonadei86d053c2019-10-17 21:32:04 +020053 rtc_library("to_queued_task_unittests") {
Danil Chapovalov3b548dd2019-03-01 14:58:44 +010054 testonly = true
55 sources = [
56 "to_queued_task_unittest.cc",
57 ]
58 deps = [
59 ":to_queued_task",
60 "../../api/task_queue",
61 "../../test:test_support",
62 "//third_party/abseil-cpp/absl/memory",
63 ]
64 }
Sebastian Janssonecb68972019-01-18 10:30:54 +010065}