diff --git a/webrtc/api/BUILD.gn b/webrtc/api/BUILD.gn index a447dec80b..716f8c9c10 100644 --- a/webrtc/api/BUILD.gn +++ b/webrtc/api/BUILD.gn @@ -171,55 +171,55 @@ rtc_source_set("video_frame_api") { } } -rtc_source_set("mock_audio_mixer") { - testonly = true - sources = [ - "test/mock_audio_mixer.h", - ] - - public_deps = [ - ":audio_mixer_api", - ] - - deps = [ - "//testing/gmock", - "//webrtc/test:test_support", - ] -} - -rtc_source_set("libjingle_peerconnection_test_api") { - testonly = true - sources = [ - "test/fakeconstraints.h", - ] - - public_deps = [ - ":libjingle_peerconnection_api", - ] - - deps = [ - "../base:rtc_base_approved", - "//webrtc/test:test_support", - ] -} - -rtc_source_set("fakemetricsobserver") { - testonly = true - sources = [ - "fakemetricsobserver.cc", - "fakemetricsobserver.h", - ] - deps = [ - ":libjingle_peerconnection_api", - "../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" ] - } -} - if (rtc_include_tests) { + rtc_source_set("mock_audio_mixer") { + testonly = true + sources = [ + "test/mock_audio_mixer.h", + ] + + public_deps = [ + ":audio_mixer_api", + ] + + deps = [ + "//testing/gmock", + "//webrtc/test:test_support", + ] + } + + rtc_source_set("libjingle_peerconnection_test_api") { + testonly = true + sources = [ + "test/fakeconstraints.h", + ] + + public_deps = [ + ":libjingle_peerconnection_api", + ] + + deps = [ + "../base:rtc_base_approved", + "//webrtc/test:test_support", + ] + } + + rtc_source_set("fakemetricsobserver") { + testonly = true + sources = [ + "fakemetricsobserver.cc", + "fakemetricsobserver.h", + ] + deps = [ + ":libjingle_peerconnection_api", + "../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" ] + } + } + rtc_source_set("rtc_api_unittests") { testonly = true sources = [