| Index: content/browser/speech/speech_recognition_browsertest.cc
|
| ===================================================================
|
| --- content/browser/speech/speech_recognition_browsertest.cc (revision 170917)
|
| +++ content/browser/speech/speech_recognition_browsertest.cc (working copy)
|
| @@ -153,10 +153,12 @@
|
| if (session_id_) { // Do a check in case we were cancelled..
|
| VLOG(1) << "Setting fake recognition result.";
|
| listener_->OnAudioEnd(session_id_);
|
| - SpeechRecognitionResult results;
|
| - results.hypotheses.push_back(SpeechRecognitionHypothesis(
|
| + SpeechRecognitionResult result;
|
| + result.hypotheses.push_back(SpeechRecognitionHypothesis(
|
| ASCIIToUTF16(kTestResult), 1.0));
|
| - listener_->OnRecognitionResult(session_id_, results);
|
| + SpeechRecognitionResults results;
|
| + results.push_back(result);
|
| + listener_->OnRecognitionResults(session_id_, results);
|
| listener_->OnRecognitionEnd(session_id_);
|
| session_id_ = 0;
|
| listener_ = NULL;
|
|
|