Commit 722308a0 authored by Guido Urdaneta's avatar Guido Urdaneta Committed by Commit Bot

Use fake audio streams in browser tests on Linux.

Due to problems with PulseAudio failing to start, tests
using audio are flaking. Using fake audio prevents the
flakes.

Bug: 986021
Change-Id: I17d622637126ad003f5c3f63aaa5559db4bc20b2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2096768
Commit-Queue: Guido Urdaneta <guidou@chromium.org>
Reviewed-by: default avatarAvi Drissman <avi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#749299}
parent 4c1ccb06
......@@ -112,6 +112,12 @@ class BackForwardCacheBrowserTest : public ContentBrowserTest,
switches::kIgnoreCertificateErrors);
base::CommandLine::ForCurrentProcess()->AppendSwitch(
switches::kEnableExperimentalWebPlatformFeatures);
#if defined(OS_LINUX)
// Due to problems with PulseAudio failing to start, use a fake audio
// stream. https://crbug.com/1047655#c70
base::CommandLine::ForCurrentProcess()->AppendSwitch(
switches::kDisableAudioOutput);
#endif
// TODO(sreejakshetty): Initialize ScopedFeatureLists from test constructor.
EnableFeatureAndSetParams(features::kBackForwardCache,
"TimeToLiveInBackForwardCacheInSeconds", "3600");
......
......@@ -917,6 +917,11 @@ class CaptureStreamRenderProcessHostTest : public RenderProcessHostTest {
}
void SetUpCommandLine(base::CommandLine* command_line) override {
#if defined(OS_LINUX)
// Due to problems with PulseAudio failing to start, use a fake audio
// stream. https://crbug.com/1047655#c70
command_line->AppendSwitch(switches::kDisableAudioOutput);
#endif
// These flags are necessary to emulate camera input for getUserMedia()
// tests.
command_line->AppendSwitch(switches::kUseFakeUIForMediaStream);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment