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

Unified Diff: content/browser/speech/speech_recognition_browsertest.cc

Issue 2785463005: Removing AudioSystem::GetAudioManager() usage from speech recognition (Closed)
Patch Set: Created 3 years, 9 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 | « content/browser/browser_main_loop.cc ('k') | content/browser/speech/speech_recognition_manager_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/speech/speech_recognition_browsertest.cc
diff --git a/content/browser/speech/speech_recognition_browsertest.cc b/content/browser/speech/speech_recognition_browsertest.cc
index c975620f3cb2741b0eb02ab20e9886a78eecfa33..d51fea6f7081df346d2f86a9eb4bb3610ca788cb 100644
--- a/content/browser/speech/speech_recognition_browsertest.cc
+++ b/content/browser/speech/speech_recognition_browsertest.cc
@@ -128,11 +128,12 @@ class SpeechRecognitionBrowserTest :
audio_manager_->SetInputStreamParameters(
media::AudioParameters::UnavailableDeviceParams());
audio_system_ = media::AudioSystemImpl::Create(audio_manager_.get());
- SpeechRecognizerImpl::SetAudioSystemForTesting(audio_system_.get());
+ SpeechRecognizerImpl::SetAudioEnvironmentForTesting(audio_system_.get(),
+ audio_manager_.get());
}
void TearDownOnMainThread() override {
- SpeechRecognizerImpl::SetAudioSystemForTesting(nullptr);
+ SpeechRecognizerImpl::SetAudioEnvironmentForTesting(nullptr, nullptr);
// Deleting AudioManager on audio thread,
audio_system_.reset();
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/speech/speech_recognition_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698