Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1304)

Unified Diff: chrome/browser/media/webrtc_audio_quality_browsertest.cc

Issue 2043353002: Make fake audio file playback loop by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: String handling is hard Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/audio/fake_audio_input_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/webrtc_audio_quality_browsertest.cc
diff --git a/chrome/browser/media/webrtc_audio_quality_browsertest.cc b/chrome/browser/media/webrtc_audio_quality_browsertest.cc
index b2fc9311808927ab49464c50afb3570a0392be9f..d46bcc3eb5f572bb5c66e4995f65e5d5b6c38300 100644
--- a/chrome/browser/media/webrtc_audio_quality_browsertest.cc
+++ b/chrome/browser/media/webrtc_audio_quality_browsertest.cc
@@ -148,8 +148,9 @@ class MAYBE_WebRtcAudioQualityBrowserTest : public WebRtcTestBase {
}
void ConfigureFakeDeviceToPlayFile(const base::FilePath& wav_file_path) {
- base::CommandLine::ForCurrentProcess()->AppendSwitchPath(
- switches::kUseFileForFakeAudioCapture, wav_file_path);
+ base::CommandLine::ForCurrentProcess()->AppendSwitchNative(
+ switches::kUseFileForFakeAudioCapture,
+ wav_file_path.value() + FILE_PATH_LITERAL("%noloop"));
}
void AddAudioFileToWebAudio(const std::string& input_file_relative_url,
« no previous file with comments | « no previous file | media/audio/fake_audio_input_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698