Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(566)

Unified Diff: webrtc/stats/BUILD.gn

Issue 2241093002: RTCStats and RTCStatsReport added (webrtc/stats) (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/stats/BUILD.gn
diff --git a/webrtc/stats/BUILD.gn b/webrtc/stats/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..a9652012ede9b2035a1cac882cefd68f0cb468fa
--- /dev/null
+++ b/webrtc/stats/BUILD.gn
@@ -0,0 +1,56 @@
+# Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
+#
+# Use of this source code is governed by a BSD-style license
+# that can be found in the LICENSE file in the root of the source
+# tree. An additional intellectual property rights grant can be found
+# in the file PATENTS. All contributing project authors may
+# be found in the AUTHORS file in the root of the source tree.
+
+import("../build/webrtc.gni")
+import("//testing/test.gni")
+
+# GYP version: webrtc/stats/stats.gyp:rtc_stats
+source_set("rtc_stats") {
+ cflags = []
+ sources = [
+ "rtcstats.cc",
+ "rtcstatsreport.cc",
+ ]
+
+ configs += [ "..:common_config" ]
+ public_configs = [ "..:common_inherited_config" ]
+
+ if (is_clang) {
+ # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
+ configs -= [ "//build/config/clang:find_bad_constructs" ]
kjellander_webrtc 2016/08/15 11:21:51 Can't you fix the warnings instead of having to ad
hbos 2016/08/15 13:27:11 Done.
kjellander_webrtc 2016/08/15 13:34:20 If you fixed the warnings, remove this line to pro
hbos 2016/08/15 13:57:57 Done. (Oops, lost removing those lines when switch
+ }
+
+ deps = [
+ "../api:libjingle_peerconnection",
+ ]
+}
+
+if (rtc_include_tests) {
+ # GYP version: webrtc/stats/stats.gyp:rtc_stats_unittests
+ test("rtc_stats_unittests") {
hbos 2016/08/13 08:31:39 This is a new unittest built from a new folder, we
kjellander_webrtc 2016/08/15 11:21:51 Can you make this target run on Android as well?
hbos 2016/08/15 13:27:12 Done.
hbos 2016/08/15 13:57:57 I made it work for GN, but not GYP as discussed of
+ testonly = true
+ sources = [
+ "rtcstats_unittest.cc",
+ ]
+
+ configs += [ "..:common_config" ]
+ public_configs = [ "..:common_inherited_config" ]
+
+ if (is_clang) {
+ # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
+ configs -= [ "//build/config/clang:find_bad_constructs" ]
kjellander_webrtc 2016/08/15 11:21:51 Please fix the warnings instead of adding this (un
hbos 2016/08/15 13:27:11 Done.
+ }
+
+ deps = [
+ ":rtc_stats",
+ "../base:rtc_base_tests_utils",
+ "../system_wrappers:metrics_default",
+ "//testing/gmock",
+ ]
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698