Index: content/browser/media/webrtc_aecdump_browsertest.cc |
diff --git a/content/browser/media/webrtc_aecdump_browsertest.cc b/content/browser/media/webrtc_aecdump_browsertest.cc |
index cf98c4bad86924a61a35b52a28fca81fd865303f..f65b1a427869ac809f337a403c17f3e86fbec81c 100644 |
--- a/content/browser/media/webrtc_aecdump_browsertest.cc |
+++ b/content/browser/media/webrtc_aecdump_browsertest.cc |
@@ -27,9 +27,6 @@ |
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir()); |
ASSERT_TRUE(CreateTemporaryFileInDir(temp_dir_.path(), &dump_file_)); |
- // These tests expect pixel output. |
- UseRealGLContexts(); |
- |
ContentBrowserTest::SetUp(); |
} |
@@ -40,6 +37,10 @@ |
switches::kUseFakeDeviceForMediaStream)); |
ASSERT_TRUE(CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kUseFakeUIForMediaStream)); |
+ |
+ // The video playback will not work without a GPU, so force its use here. |
+ // This may not be available on all VMs though. |
+ command_line->AppendSwitch(switches::kUseGpuInTests); |
// Enable AEC dump with the command line flag. |
command_line->AppendSwitchPath(switches::kEnableWebRtcAecRecordings, |