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

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: review and unit test fixes. 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..098fb5a84ce3194de88a3fec1a20157da18e9bf5 100644
--- a/content/browser/speech/speech_input_browsertest.cc
+++ b/content/browser/speech/speech_input_browsertest.cc
@@ -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.stable.push_back(SpeechInputResultItem(
Satish 2011/10/06 09:09:06 did you mean '.hypotheses' here? I don't see a 'st
Leandro GraciĆ” Gil 2011/10/06 18:26:25 Done.
+ ASCIIToUTF16(kTestResult), 1.0));
delegate_->SetRecognitionResult(caller_id_, results);
delegate_->DidCompleteRecognition(caller_id_);
caller_id_ = 0;

Powered by Google App Engine
This is Rietveld 408576698