1# 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 9import("../webrtc.gni") 10 11group("stats") { 12 deps = [ ":rtc_stats" ] 13} 14 15rtc_library("rtc_stats") { 16 visibility = [ "*" ] 17 cflags = [] 18 sources = [ 19 "rtc_stats.cc", 20 "rtc_stats_report.cc", 21 "rtcstats_objects.cc", 22 ] 23 24 deps = [ 25 "../api:rtc_stats_api", 26 "../rtc_base:checks", 27 "../rtc_base:macromagic", 28 "../rtc_base:stringutils", 29 ] 30} 31 32rtc_library("rtc_stats_test_utils") { 33 visibility = [ "*" ] 34 cflags = [] 35 sources = [ 36 "test/rtc_test_stats.cc", 37 "test/rtc_test_stats.h", 38 ] 39 40 deps = [ 41 ":rtc_stats", 42 "../api:rtc_stats_api", 43 "../rtc_base:checks", 44 "../rtc_base/system:rtc_export", 45 ] 46} 47 48if (rtc_include_tests && !build_with_chromium) { 49 rtc_test("rtc_stats_unittests") { 50 testonly = true 51 sources = [ 52 "rtc_stats_report_unittest.cc", 53 "rtc_stats_unittest.cc", 54 ] 55 56 deps = [ 57 ":rtc_stats", 58 ":rtc_stats_test_utils", 59 "../api:rtc_stats_api", 60 "../rtc_base:checks", 61 "../rtc_base:gunit_helpers", 62 "../rtc_base:rtc_json", 63 "../test:test_main", 64 "../test:test_support", 65 ] 66 67 if (is_android) { 68 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 ] 74 } 75 } 76} 77