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:rtc_base_approved", 28 ] 29} 30 31rtc_library("rtc_stats_test_utils") { 32 visibility = [ "*" ] 33 cflags = [] 34 sources = [ 35 "test/rtc_test_stats.cc", 36 "test/rtc_test_stats.h", 37 ] 38 39 deps = [ 40 ":rtc_stats", 41 "../api:rtc_stats_api", 42 "../rtc_base:checks", 43 "../rtc_base/system:rtc_export", 44 ] 45} 46 47if (rtc_include_tests) { 48 rtc_test("rtc_stats_unittests") { 49 testonly = true 50 sources = [ 51 "rtc_stats_report_unittest.cc", 52 "rtc_stats_unittest.cc", 53 ] 54 55 deps = [ 56 ":rtc_stats", 57 ":rtc_stats_test_utils", 58 "../api:rtc_stats_api", 59 "../rtc_base:checks", 60 "../rtc_base:gunit_helpers", 61 "../rtc_base:rtc_base_approved", 62 "../rtc_base:rtc_json", 63 "../test:test_main", 64 "../test:test_support", 65 ] 66 67 if (is_android) { 68 deps += [ "//testing/android/native_test:native_test_native_code" ] 69 } 70 } 71} 72