blob: 66a85fff5cd56c16ccd6db9991be608c6ec37735 [file] [log] [blame]
Sebastian Jansson30bd4032018-04-13 13:56:17 +02001# Copyright (c) 2018 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
Sebastian Jansson6fae6ec2018-05-08 10:43:18 +02009import("../../webrtc.gni")
Sebastian Jansson30bd4032018-04-13 13:56:17 +020010
Sebastian Jansson30bd4032018-04-13 13:56:17 +020011rtc_source_set("data_rate") {
Mirko Bonadei38537ed2018-10-05 21:09:00 +020012 visibility = [ "*" ]
Sebastian Jansson30bd4032018-04-13 13:56:17 +020013 sources = [
14 "data_rate.cc",
15 "data_rate.h",
16 ]
17
18 deps = [
Sebastian Janssone31be152018-04-16 12:41:47 +020019 ":data_size",
20 ":time_delta",
Sebastian Jansson6fae6ec2018-05-08 10:43:18 +020021 "../../rtc_base:checks",
22 "../../rtc_base:rtc_base_approved",
Sebastian Jansson30bd4032018-04-13 13:56:17 +020023 ]
24}
25
26rtc_source_set("data_size") {
Mirko Bonadei38537ed2018-10-05 21:09:00 +020027 visibility = [ "*" ]
Sebastian Jansson30bd4032018-04-13 13:56:17 +020028 sources = [
29 "data_size.cc",
30 "data_size.h",
31 ]
32
33 deps = [
Sebastian Jansson6fae6ec2018-05-08 10:43:18 +020034 "../../rtc_base:checks",
35 "../../rtc_base:rtc_base_approved",
Sebastian Jansson30bd4032018-04-13 13:56:17 +020036 ]
37}
Mirko Bonadei38537ed2018-10-05 21:09:00 +020038
Sebastian Jansson30bd4032018-04-13 13:56:17 +020039rtc_source_set("time_delta") {
Mirko Bonadei38537ed2018-10-05 21:09:00 +020040 visibility = [ "*" ]
Sebastian Jansson30bd4032018-04-13 13:56:17 +020041 sources = [
42 "time_delta.cc",
43 "time_delta.h",
44 ]
45
46 deps = [
Sebastian Jansson6fae6ec2018-05-08 10:43:18 +020047 "../../rtc_base:checks",
48 "../../rtc_base:rtc_base_approved",
Sebastian Jansson30bd4032018-04-13 13:56:17 +020049 ]
50}
51
52rtc_source_set("timestamp") {
Mirko Bonadei38537ed2018-10-05 21:09:00 +020053 visibility = [ "*" ]
Sebastian Jansson30bd4032018-04-13 13:56:17 +020054 sources = [
55 "timestamp.cc",
56 "timestamp.h",
57 ]
58
59 deps = [
60 ":time_delta",
Sebastian Jansson6fae6ec2018-05-08 10:43:18 +020061 "../../rtc_base:checks",
62 "../../rtc_base:rtc_base_approved",
Sebastian Jansson30bd4032018-04-13 13:56:17 +020063 ]
64}
65
66if (rtc_include_tests) {
67 rtc_source_set("units_unittests") {
68 testonly = true
69 sources = [
70 "data_rate_unittest.cc",
71 "data_size_unittest.cc",
72 "time_delta_unittest.cc",
73 "timestamp_unittest.cc",
Sebastian Jansson30bd4032018-04-13 13:56:17 +020074 ]
75 deps = [
76 ":data_rate",
77 ":data_size",
78 ":time_delta",
79 ":timestamp",
Sebastian Jansson6fae6ec2018-05-08 10:43:18 +020080 "../../test:test_support",
Sebastian Jansson30bd4032018-04-13 13:56:17 +020081 ]
82 }
83}