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

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

Issue 549373003: Binding media stream audio track to speech recognition [browser] Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Wait with no timeout Created 6 years, 1 month 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/speech/speech_recognizer_impl.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/speech/speech_recognizer_impl_unittest.cc
diff --git a/content/browser/speech/speech_recognizer_impl_unittest.cc b/content/browser/speech/speech_recognizer_impl_unittest.cc
index 7168fb649739612be1603264bf2adbaa773da19f..7dd62f335c416bcd244e0da6ad7f6e5c08e1d8ae 100644
--- a/content/browser/speech/speech_recognizer_impl_unittest.cc
+++ b/content/browser/speech/speech_recognizer_impl_unittest.cc
@@ -55,8 +55,13 @@ class SpeechRecognizerImplTest : public SpeechRecognitionEventListener,
sr_engine->SetConfig(config);
const int kTestingSessionId = 1;
- recognizer_ = new SpeechRecognizerImpl(
- this, kTestingSessionId, false, false, sr_engine);
+ recognizer_ = new SpeechRecognizerImpl(this,
+ kTestingSessionId,
+ false, // continuous
+ false, // provisional_results
+ false, // using_audio_receiver
+ base::kNullProcessHandle,
+ sr_engine);
audio_manager_.reset(new media::MockAudioManager(
base::MessageLoop::current()->message_loop_proxy().get()));
recognizer_->SetAudioManagerForTesting(audio_manager_.get());
@@ -136,6 +141,12 @@ class SpeechRecognizerImplTest : public SpeechRecognitionEventListener,
void OnEnvironmentEstimationComplete(int session_id) override {}
+ virtual void OnAudioReceiverReady(
+ int session_id,
+ const media::AudioParameters& params,
+ const base::SharedMemoryHandle memory,
+ const base::SyncSocket::TransitDescriptor socket) override {}
+
void OnSoundStart(int session_id) override {
sound_started_ = true;
CheckEventsConsistency();
« no previous file with comments | « content/browser/speech/speech_recognizer_impl.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698