| OLD | NEW |
| 1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import("../build/webrtc.gni") | 9 import("../build/webrtc.gni") |
| 10 import("//testing/test.gni") | |
| 11 | 10 |
| 12 group("stats") { | 11 group("stats") { |
| 13 deps = [ | 12 deps = [ |
| 14 ":rtc_stats", | 13 ":rtc_stats", |
| 15 ] | 14 ] |
| 16 } | 15 } |
| 17 | 16 |
| 18 # GYP version: webrtc/stats/stats.gyp:rtc_stats | 17 # GYP version: webrtc/stats/stats.gyp:rtc_stats |
| 19 source_set("rtc_stats") { | 18 rtc_source_set("rtc_stats") { |
| 20 cflags = [] | 19 cflags = [] |
| 21 sources = [ | 20 sources = [ |
| 22 "rtcstats.cc", | 21 "rtcstats.cc", |
| 23 "rtcstats_objects.cc", | 22 "rtcstats_objects.cc", |
| 24 "rtcstatscollector.cc", | 23 "rtcstatscollector.cc", |
| 25 "rtcstatscollector.h", | 24 "rtcstatscollector.h", |
| 26 "rtcstatsreport.cc", | 25 "rtcstatsreport.cc", |
| 27 ] | 26 ] |
| 28 | 27 |
| 29 configs += [ "..:common_config" ] | 28 configs += [ "..:common_config" ] |
| 30 public_configs = [ "..:common_inherited_config" ] | 29 public_configs = [ "..:common_inherited_config" ] |
| 31 | 30 |
| 32 if (is_clang) { | 31 if (is_clang) { |
| 33 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 32 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 34 configs -= [ "//build/config/clang:find_bad_constructs" ] | 33 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
| 35 } | 34 } |
| 36 | 35 |
| 37 deps = [ | 36 deps = [ |
| 38 "../api:libjingle_peerconnection", | 37 "../api:libjingle_peerconnection", |
| 39 ] | 38 ] |
| 40 } | 39 } |
| 41 | 40 |
| 42 if (rtc_include_tests) { | 41 if (rtc_include_tests) { |
| 43 # GYP version: webrtc/stats/stats.gyp:rtc_stats_unittests | 42 # GYP version: webrtc/stats/stats.gyp:rtc_stats_unittests |
| 44 test("rtc_stats_unittests") { | 43 rtc_test("rtc_stats_unittests") { |
| 45 testonly = true | 44 testonly = true |
| 46 sources = [ | 45 sources = [ |
| 47 "rtcstats_unittest.cc", | 46 "rtcstats_unittest.cc", |
| 48 "rtcstatscollector_unittest.cc", | 47 "rtcstatscollector_unittest.cc", |
| 49 "rtcstatsreport_unittest.cc", | 48 "rtcstatsreport_unittest.cc", |
| 50 ] | 49 ] |
| 51 | 50 |
| 52 configs += [ "..:common_config" ] | 51 configs += [ "..:common_config" ] |
| 53 public_configs = [ "..:common_inherited_config" ] | 52 public_configs = [ "..:common_inherited_config" ] |
| 54 | 53 |
| 55 if (is_clang) { | 54 if (is_clang) { |
| 56 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 55 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 57 configs -= [ "//build/config/clang:find_bad_constructs" ] | 56 configs_suppressions += [ "//build/config/clang:find_bad_constructs" ] |
| 58 } | 57 } |
| 59 | 58 |
| 60 deps = [ | 59 deps = [ |
| 61 ":rtc_stats", | 60 ":rtc_stats", |
| 62 "../base:rtc_base_tests_utils", | 61 "../base:rtc_base_tests_utils", |
| 63 "../system_wrappers:metrics_default", | 62 "../system_wrappers:metrics_default", |
| 64 "//testing/gmock", | 63 "//testing/gmock", |
| 65 ] | 64 ] |
| 66 | 65 |
| 67 if (is_android) { | 66 if (is_android) { |
| 68 deps += [ "//testing/android/native_test:native_test_native_code" ] | 67 deps += [ "//testing/android/native_test:native_test_native_code" ] |
| 69 } | 68 } |
| 70 } | 69 } |
| 71 } | 70 } |
| OLD | NEW |