blob: b2a0c2047322c17c85ef1a056f9b3c41cce19e0d [file] [log] [blame]
hbos615d3012016-08-24 08:33:131# 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 14:58:229import("../webrtc.gni")
hbos615d3012016-08-24 08:33:1310
11group("stats") {
Mirko Bonadeiccbe95f2020-01-21 11:10:1012 deps = [ ":rtc_stats" ]
hbos615d3012016-08-24 08:33:1313}
14
Mirko Bonadei86d053c2019-10-17 19:32:0415rtc_library("rtc_stats") {
Per Kjellandera7f2d842018-01-10 15:54:5316 visibility = [ "*" ]
hbos615d3012016-08-24 08:33:1317 cflags = []
18 sources = [
Steve Anton10542f22019-01-11 17:11:0019 "rtc_stats.cc",
20 "rtc_stats_report.cc",
hbosd565b732016-08-30 21:04:3521 "rtcstats_objects.cc",
hbos615d3012016-08-24 08:33:1322 ]
23
hbos615d3012016-08-24 08:33:1324 deps = [
hbos74e1a4f2016-09-16 06:33:0125 "../api:rtc_stats_api",
Yves Gerey3e707812018-11-28 15:47:4926 "../rtc_base:checks",
Florent Castelli4467ad72022-04-04 13:18:4627 "../rtc_base:macromagic",
Florent Castelli57aa81b2022-04-04 15:14:0228 "../rtc_base:stringutils",
hbos615d3012016-08-24 08:33:1329 ]
30}
31
Mirko Bonadei86d053c2019-10-17 19:32:0432rtc_library("rtc_stats_test_utils") {
Per Kjellandera7f2d842018-01-10 15:54:5333 visibility = [ "*" ]
hbos27e177c2016-09-19 13:05:5634 cflags = []
35 sources = [
Steve Anton10542f22019-01-11 17:11:0036 "test/rtc_test_stats.cc",
37 "test/rtc_test_stats.h",
hbos27e177c2016-09-19 13:05:5638 ]
39
hbos27e177c2016-09-19 13:05:5640 deps = [
41 ":rtc_stats",
42 "../api:rtc_stats_api",
Yves Gerey3e707812018-11-28 15:47:4943 "../rtc_base:checks",
Mirko Bonadei977b46a2018-10-24 14:22:0444 "../rtc_base/system:rtc_export",
hbos27e177c2016-09-19 13:05:5645 ]
46}
47
Andrey Logvine7c79fd2021-02-01 09:56:3748if (rtc_include_tests && !build_with_chromium) {
ehmaldonado38a21322016-09-02 11:10:3449 rtc_test("rtc_stats_unittests") {
hbos615d3012016-08-24 08:33:1350 testonly = true
51 sources = [
Steve Anton10542f22019-01-11 17:11:0052 "rtc_stats_report_unittest.cc",
53 "rtc_stats_unittest.cc",
hbos615d3012016-08-24 08:33:1354 ]
55
hbos615d3012016-08-24 08:33:1356 deps = [
57 ":rtc_stats",
hbos27e177c2016-09-19 13:05:5658 ":rtc_stats_test_utils",
kjellanderdcb4b432017-02-27 23:53:3959 "../api:rtc_stats_api",
Patrik Höglunda8005cf2017-12-13 15:05:4260 "../rtc_base:checks",
Mirko Bonadeie3abb812018-11-23 12:15:0861 "../rtc_base:gunit_helpers",
ehmaldonado35a872c2017-07-28 14:29:1262 "../rtc_base:rtc_json",
Niels Möller04a3cc12019-05-21 11:01:5863 "../test:test_main",
Yves Gerey3e707812018-11-28 15:47:4964 "../test:test_support",
hbos615d3012016-08-24 08:33:1365 ]
66
67 if (is_android) {
Björn Terelius0c68a7a2022-04-19 13:32:3768 use_default_launcher = false
69 deps += [
70 "//build/android/gtest_apk:native_test_instrumentation_test_runner_java",
71 "//testing/android/native_test:native_test_java",
72 "//testing/android/native_test:native_test_support",
73 ]
hbos615d3012016-08-24 08:33:1374 }
hbos615d3012016-08-24 08:33:1375 }
76}