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

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

Issue 10273006: Introduced SpeechRecognitionDispatcher(Host) classes, handling dispatch of IPC messages for continu… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Test fixed + Satish nits. Created 8 years, 7 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_recognition_browsertest.cc
diff --git a/content/browser/speech/speech_recognition_browsertest.cc b/content/browser/speech/speech_recognition_browsertest.cc
index a939fb6ad5aaa045961e1599cdda5f3e31aff617..f812ebf91462c4e4b6940ac366f428a005b320a9 100644
--- a/content/browser/speech/speech_recognition_browsertest.cc
+++ b/content/browser/speech/speech_recognition_browsertest.cc
@@ -130,12 +130,12 @@ class FakeSpeechRecognitionManager : public content::SpeechRecognitionManager {
virtual string16 GetAudioInputDeviceModel() OVERRIDE { return string16(); }
virtual void ShowAudioInputSettings() OVERRIDE {}
- virtual int LookupSessionByContext(
- base::Callback<bool(
- const content::SpeechRecognitionSessionContext&)> matcher)
- const OVERRIDE {
- bool matched = matcher.Run(session_ctx_);
- return matched ? session_id_ : 0;
+ virtual int GetSession(int render_process_id,
+ int render_view_id,
+ int request_id) const OVERRIDE {
+ return session_ctx_.render_process_id == render_process_id &&
+ session_ctx_.render_view_id == render_view_id &&
+ session_ctx_.request_id == request_id;
}
virtual const SpeechRecognitionSessionConfig& GetSessionConfig(

Powered by Google App Engine
This is Rietveld 408576698