diff --git a/modules/video_coding/BUILD.gn b/modules/video_coding/BUILD.gn index c6e30a5821..12ded47322 100644 --- a/modules/video_coding/BUILD.gn +++ b/modules/video_coding/BUILD.gn @@ -715,11 +715,13 @@ if (rtc_include_tests) { "codecs/multiplex/test/multiplex_adapter_unittest.cc", "codecs/test/video_encoder_decoder_instantiation_tests.cc", "codecs/test/videocodec_test_libvpx.cc", - "codecs/test/videocodec_test_openh264.cc", "codecs/test/videocodec_test_parameterized.cc", "codecs/vp8/test/vp8_impl_unittest.cc", "codecs/vp9/test/vp9_impl_unittest.cc", ] + if (rtc_use_h264) { + sources += [ "codecs/test/videocodec_test_openh264.cc" ] + } deps = [ ":video_codecs_test_framework", @@ -765,10 +767,6 @@ if (rtc_include_tests) { } } - if (rtc_use_h264) { - defines = [ "WEBRTC_USE_H264" ] - } - 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" ] diff --git a/modules/video_coding/codecs/test/videocodec_test_openh264.cc b/modules/video_coding/codecs/test/videocodec_test_openh264.cc index 2bfd12fdff..682e4745e6 100644 --- a/modules/video_coding/codecs/test/videocodec_test_openh264.cc +++ b/modules/video_coding/codecs/test/videocodec_test_openh264.cc @@ -19,8 +19,6 @@ namespace webrtc { namespace test { -#if defined(WEBRTC_USE_H264) - namespace { // Codec settings. const int kCifWidth = 352; @@ -87,7 +85,5 @@ TEST(VideoProcessorIntegrationTestOpenH264, SingleNalUnit) { &bs_thresholds, nullptr); } -#endif // defined(WEBRTC_USE_H264) - } // namespace test } // namespace webrtc