blob: 7d5f710def8b501a6e0b142d23a30a742a64ac50 [file] [log] [blame]
hbos615d3012016-08-24 01:33:13 -07001# Copyright (c) 2016 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
mbonadei9aa3f0a2017-01-24 06:58:22 -08009import("../webrtc.gni")
hbos615d3012016-08-24 01:33:13 -070010
11group("stats") {
Mirko Bonadei0880f4b2017-12-04 11:49:49 +010012 deps = [
hbos615d3012016-08-24 01:33:13 -070013 ":rtc_stats",
14 ]
15}
16
Mirko Bonadei86d053c2019-10-17 21:32:04 +020017rtc_library("rtc_stats") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000018 visibility = [ "*" ]
hbos615d3012016-08-24 01:33:13 -070019 cflags = []
20 sources = [
Steve Anton10542f22019-01-11 09:11:00 -080021 "rtc_stats.cc",
22 "rtc_stats_report.cc",
hbosd565b732016-08-30 14:04:35 -070023 "rtcstats_objects.cc",
hbos615d3012016-08-24 01:33:13 -070024 ]
25
hbos615d3012016-08-24 01:33:13 -070026 deps = [
hbos74e1a4f2016-09-15 23:33:01 -070027 "../api:rtc_stats_api",
Yves Gerey3e707812018-11-28 16:47:49 +010028 "../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -070029 "../rtc_base:rtc_base_approved",
hbos615d3012016-08-24 01:33:13 -070030 ]
31}
32
Mirko Bonadei86d053c2019-10-17 21:32:04 +020033rtc_library("rtc_stats_test_utils") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000034 visibility = [ "*" ]
hbos27e177c2016-09-19 06:05:56 -070035 cflags = []
36 sources = [
Steve Anton10542f22019-01-11 09:11:00 -080037 "test/rtc_test_stats.cc",
38 "test/rtc_test_stats.h",
hbos27e177c2016-09-19 06:05:56 -070039 ]
40
hbos27e177c2016-09-19 06:05:56 -070041 deps = [
42 ":rtc_stats",
43 "../api:rtc_stats_api",
Yves Gerey3e707812018-11-28 16:47:49 +010044 "../rtc_base:checks",
Mirko Bonadei977b46a2018-10-24 16:22:04 +020045 "../rtc_base/system:rtc_export",
hbos27e177c2016-09-19 06:05:56 -070046 ]
47}
48
hbos615d3012016-08-24 01:33:13 -070049if (rtc_include_tests) {
ehmaldonado38a21322016-09-02 04:10:34 -070050 rtc_test("rtc_stats_unittests") {
hbos615d3012016-08-24 01:33:13 -070051 testonly = true
52 sources = [
Steve Anton10542f22019-01-11 09:11:00 -080053 "rtc_stats_report_unittest.cc",
54 "rtc_stats_unittest.cc",
hbos615d3012016-08-24 01:33:13 -070055 ]
56
hbos615d3012016-08-24 01:33:13 -070057 deps = [
58 ":rtc_stats",
hbos27e177c2016-09-19 06:05:56 -070059 ":rtc_stats_test_utils",
kjellanderdcb4b432017-02-27 15:53:39 -080060 "../api:rtc_stats_api",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010061 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 13:15:08 +010062 "../rtc_base:gunit_helpers",
ehmaldonadof6a861a2017-07-19 10:40:47 -070063 "../rtc_base:rtc_base_approved",
ehmaldonado35a872c2017-07-28 07:29:12 -070064 "../rtc_base:rtc_json",
Niels Möller04a3cc12019-05-21 13:01:58 +020065 "../test:test_main",
Yves Gerey3e707812018-11-28 16:47:49 +010066 "../test:test_support",
hbos615d3012016-08-24 01:33:13 -070067 ]
68
69 if (is_android) {
70 deps += [ "//testing/android/native_test:native_test_native_code" ]
71 }
hbos615d3012016-08-24 01:33:13 -070072 }
73}