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 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 27 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
28 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 28 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
29 } | 29 } |
30 | 30 |
31 deps = [ | 31 deps = [ |
32 "../api:rtc_stats_api", | 32 "../api:rtc_stats_api", |
33 "../base:rtc_base_approved", | 33 "../base:rtc_base_approved", |
34 ] | 34 ] |
35 } | 35 } |
36 | 36 |
| 37 rtc_source_set("rtc_stats_test_utils") { |
| 38 cflags = [] |
| 39 sources = [ |
| 40 "test/rtcteststats.cc", |
| 41 "test/rtcteststats.h", |
| 42 ] |
| 43 |
| 44 if (is_clang) { |
| 45 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
| 46 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
| 47 } |
| 48 |
| 49 deps = [ |
| 50 ":rtc_stats", |
| 51 "../api:rtc_stats_api", |
| 52 ] |
| 53 } |
| 54 |
37 if (rtc_include_tests) { | 55 if (rtc_include_tests) { |
38 # GYP version: webrtc/stats/stats.gyp:rtc_stats_unittests | |
39 rtc_test("rtc_stats_unittests") { | 56 rtc_test("rtc_stats_unittests") { |
40 testonly = true | 57 testonly = true |
41 sources = [ | 58 sources = [ |
42 "rtcstats_unittest.cc", | 59 "rtcstats_unittest.cc", |
43 "rtcstatsreport_unittest.cc", | 60 "rtcstatsreport_unittest.cc", |
44 ] | 61 ] |
45 | 62 |
46 if (is_clang) { | 63 if (is_clang) { |
47 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). | 64 # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
48 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] | 65 suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
49 } | 66 } |
50 | 67 |
51 deps = [ | 68 deps = [ |
52 ":rtc_stats", | 69 ":rtc_stats", |
| 70 ":rtc_stats_test_utils", |
53 "../base:rtc_base_tests_utils", | 71 "../base:rtc_base_tests_utils", |
54 "../system_wrappers:metrics_default", | 72 "../system_wrappers:metrics_default", |
55 "//testing/gmock", | 73 "//testing/gmock", |
56 ] | 74 ] |
57 | 75 |
58 if (is_android) { | 76 if (is_android) { |
59 deps += [ "//testing/android/native_test:native_test_native_code" ] | 77 deps += [ "//testing/android/native_test:native_test_native_code" ] |
60 } | 78 } |
61 } | 79 } |
62 } | 80 } |
OLD | NEW |