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

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

Issue 8137005: Applying changes to the existing speech input code to support the extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mac bot fix. Created 9 years, 2 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
Index: content/browser/speech/speech_input_browsertest.cc
diff --git a/content/browser/speech/speech_input_browsertest.cc b/content/browser/speech/speech_input_browsertest.cc
index eae9b234a3b080bd48abcadb105d83f4f7ee7bd2..46ac76e3c436e925caf3429c07468edcce8d525c 100644
--- a/content/browser/speech/speech_input_browsertest.cc
+++ b/content/browser/speech/speech_input_browsertest.cc
@@ -109,7 +109,7 @@ class FakeSpeechInputManager : public SpeechInputManager {
float noise_volume) {}
virtual void ShowNoMicError(int caller_id) {}
virtual void ShowRecognizerError(int caller_id,
- SpeechRecognizer::ErrorCode error) {}
+ SpeechInputError error) {}
virtual void DoClose(int caller_id) {}
private:
@@ -117,8 +117,9 @@ class FakeSpeechInputManager : public SpeechInputManager {
if (caller_id_) { // Do a check in case we were cancelled..
VLOG(1) << "Setting fake recognition result.";
delegate_->DidCompleteRecording(caller_id_);
- SpeechInputResultArray results;
- results.push_back(SpeechInputResultItem(ASCIIToUTF16(kTestResult), 1.0));
+ SpeechInputResult results;
+ results.hypotheses.push_back(SpeechInputHypothesis(
+ ASCIIToUTF16(kTestResult), 1.0));
delegate_->SetRecognitionResult(caller_id_, results);
delegate_->DidCompleteRecognition(caller_id_);
caller_id_ = 0;
« no previous file with comments | « chrome/browser/speech/chrome_speech_input_manager.cc ('k') | content/browser/speech/speech_input_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698