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

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

Issue 7838028: Refactor SpeechInputManager between chrome/ and content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 3 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
« no previous file with comments | « chrome/browser/speech/chrome_speech_input_manager.cc ('k') | content/browser/speech/speech_input_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0da6e47327b2fbc2a27253e1c7fdd335a83799dd..4909a316ad1ec489c9c2e71edc9334b9c3ca4147 100644
--- a/content/browser/speech/speech_input_browsertest.cc
+++ b/content/browser/speech/speech_input_browsertest.cc
@@ -92,6 +92,24 @@ class FakeSpeechInputManager : public SpeechInputManager {
did_cancel_all_ = true;
}
+ protected:
+ virtual void GetRequestInfo(bool* can_report_metrics,
+ std::string* request_info) {}
+ virtual void ShowRecognitionRequested(int caller_id,
+ int render_process_id,
+ int render_view_id,
+ const gfx::Rect& element_rect) {}
+ virtual void ShowWarmUp(int caller_id) {}
+ virtual void ShowRecognizing(int caller_id) {}
+ virtual void ShowRecording(int caller_id) {}
+ virtual void ShowInputVolume(int caller_id,
+ float volume,
+ float noise_volume) {}
+ virtual void ShowNoMicError(int caller_id) {}
+ virtual void ShowRecognizerError(int caller_id,
+ SpeechRecognizer::ErrorCode error) {}
+ virtual void DoClose(int caller_id) {}
+
private:
void SetFakeRecognitionResult() {
if (caller_id_) { // Do a check in case we were cancelled..
« no previous file with comments | « chrome/browser/speech/chrome_speech_input_manager.cc ('k') | content/browser/speech/speech_input_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698