Index: chrome/browser/media/chrome_webrtc_browsertest.cc |
diff --git a/chrome/browser/media/chrome_webrtc_browsertest.cc b/chrome/browser/media/chrome_webrtc_browsertest.cc |
index 2e0b0f8aa904672e14cade38acd467e1743b5215..9fb001ed2b337dd50463d32a8ba75eadb98e5eff 100644 |
--- a/chrome/browser/media/chrome_webrtc_browsertest.cc |
+++ b/chrome/browser/media/chrome_webrtc_browsertest.cc |
@@ -13,7 +13,9 @@ |
#include "chrome/common/chrome_switches.h" |
#include "chrome/test/base/in_process_browser_test.h" |
#include "chrome/test/base/ui_test_utils.h" |
+#include "content/public/common/common_features.h" |
#include "content/public/common/content_switches.h" |
+#include "content/public/common/feature_h264_with_openh264_ffmpeg.h" |
#include "content/public/test/browser_test_utils.h" |
#include "media/base/media_switches.h" |
#include "net/test/embedded_test_server/embedded_test_server.h" |
@@ -80,6 +82,22 @@ IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest, |
RunsAudioVideoWebRTCCallInTwoTabs("VP9"); |
} |
+#if BUILDFLAG(RTC_USE_H264) |
+ |
+IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest, |
+ RunsAudioVideoWebRTCCallInTwoTabsH264) { |
+ // Only run test if run-time feature corresponding to |rtc_use_h264| is on. |
+ if (!base::FeatureList::IsEnabled(content::kWebRtcH264WithOpenH264FFmpeg)) { |
+ LOG(WARNING) << "Run-time feature WebRtcH264WithOpenH264FFmpeg disabled. " |
+ "Skipping WebRtcBrowserTest.RunsAudioVideoWebRTCCallInTwoTabsH264 " |
+ "(test \"OK\")"; |
+ return; |
+ } |
+ RunsAudioVideoWebRTCCallInTwoTabs("H264"); |
+} |
+ |
+#endif // BUILDFLAG(RTC_USE_H264) |
+ |
IN_PROC_BROWSER_TEST_F(WebRtcBrowserTest, TestWebAudioMediaStream) { |
// This tests against crash regressions for the WebAudio-MediaStream |
// integration. |