blob: 2f69216772d06a7d780600749b4992127b0f2001 [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
9import("../build/webrtc.gni")
10import("//testing/test.gni")
11
12group("stats") {
13 deps = [
14 ":rtc_stats",
15 ]
16}
17
18# GYP version: webrtc/stats/stats.gyp:rtc_stats
19source_set("rtc_stats") {
20 cflags = []
21 sources = [
22 "rtcstats.cc",
23 "rtcstatsreport.cc",
24 ]
25
26 configs += [ "..:common_config" ]
27 public_configs = [ "..:common_inherited_config" ]
28
29 deps = [
30 "../api:libjingle_peerconnection",
31 ]
32}
33
34if (rtc_include_tests) {
35 # GYP version: webrtc/stats/stats.gyp:rtc_stats_unittests
36 test("rtc_stats_unittests") {
37 testonly = true
38 sources = [
39 "rtcstats_unittest.cc",
hbos6d183ac2016-08-29 07:20:33 -070040 "rtcstatsreport_unittest.cc",
hbos615d3012016-08-24 01:33:13 -070041 ]
42
43 configs += [ "..:common_config" ]
44 public_configs = [ "..:common_inherited_config" ]
45
46 deps = [
47 ":rtc_stats",
48 "../base:rtc_base_tests_utils",
49 "../system_wrappers:metrics_default",
50 "//testing/gmock",
51 ]
52
53 if (is_android) {
54 deps += [ "//testing/android/native_test:native_test_native_code" ]
55 }
ehmaldonadod02fe4b2016-08-26 13:31:24 -070056
57 if (is_clang) {
58 # Suppress warnings from Chrome's Clang plugins.
59 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
60 configs -= [ "//build/config/clang:find_bad_constructs" ]
61 }
hbos615d3012016-08-24 01:33:13 -070062 }
63}