Index: webrtc/api/BUILD.gn |
diff --git a/webrtc/api/BUILD.gn b/webrtc/api/BUILD.gn |
index 45fcd915081a8c61c67e0bf35d52c6b4eeb33704..7fbcb5dab2a5a2b411d717118a20d2c1293352a6 100644 |
--- a/webrtc/api/BUILD.gn |
+++ b/webrtc/api/BUILD.gn |
@@ -224,8 +224,6 @@ if (rtc_include_tests) { |
sources = [ |
"datachannel_unittest.cc", |
"dtmfsender_unittest.cc", |
- "fakemetricsobserver.cc", |
- "fakemetricsobserver.h", |
"jsepsessiondescription_unittest.cc", |
"localaudiosource_unittest.cc", |
"mediaconstraintsinterface_unittest.cc", |
@@ -307,6 +305,7 @@ if (rtc_include_tests) { |
} |
deps += [ |
+ ":fakemetricsobserver", |
":libjingle_peerconnection", |
"..:webrtc_common", |
"../base:rtc_base_tests_utils", |
@@ -338,4 +337,20 @@ if (rtc_include_tests) { |
"//webrtc/test:test_support", |
] |
} |
+ |
+ rtc_source_set("fakemetricsobserver") { |
+ testonly = true |
+ sources = [ |
+ "fakemetricsobserver.cc", |
+ "fakemetricsobserver.h", |
+ ] |
+ deps = [ |
+ ":libjingle_peerconnection", |
+ "../base:rtc_base_approved", |
+ ] |
+ if (!build_with_chromium && is_clang) { |
+ # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163). |
+ suppressed_configs += [ "//build/config/clang:find_bad_constructs" ] |
+ } |
+ } |
} |