| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_PUBLIC_TEST_FAKE_SPEECH_RECOGNTION_MANAGER_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_FAKE_SPEECH_RECOGNTION_MANAGER_H_ |
| 6 #define CONTENT_PUBLIC_TEST_FAKE_SPEECH_RECOGNTION_MANAGER_H_ | 6 #define CONTENT_PUBLIC_TEST_FAKE_SPEECH_RECOGNTION_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "content/public/browser/speech_recognition_manager.h" | 9 #include "content/public/browser/speech_recognition_manager.h" |
| 10 #include "content/public/browser/speech_recognition_session_config.h" | 10 #include "content/public/browser/speech_recognition_session_config.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 void WaitForRecognitionStarted(); | 40 void WaitForRecognitionStarted(); |
| 41 | 41 |
| 42 void SetFakeResult(const std::string& result); | 42 void SetFakeResult(const std::string& result); |
| 43 | 43 |
| 44 // SpeechRecognitionManager methods. | 44 // SpeechRecognitionManager methods. |
| 45 virtual int CreateSession( | 45 virtual int CreateSession( |
| 46 const SpeechRecognitionSessionConfig& config) OVERRIDE; | 46 const SpeechRecognitionSessionConfig& config) OVERRIDE; |
| 47 virtual void StartSession(int session_id) OVERRIDE; | 47 virtual void StartSession(int session_id) OVERRIDE; |
| 48 virtual void AbortSession(int session_id) OVERRIDE; | 48 virtual void AbortSession(int session_id) OVERRIDE; |
| 49 virtual void StopAudioCaptureForSession(int session_id) OVERRIDE; | 49 virtual void StopAudioCaptureForSession(int session_id) OVERRIDE; |
| 50 virtual void AbortAllSessionsForListener( | 50 virtual void AbortAllSessionsForRenderProcess(int render_process_id) OVERRIDE; |
| 51 SpeechRecognitionEventListener* listener) OVERRIDE; | |
| 52 virtual void AbortAllSessionsForRenderView(int render_process_id, | 51 virtual void AbortAllSessionsForRenderView(int render_process_id, |
| 53 int render_view_id) OVERRIDE; | 52 int render_view_id) OVERRIDE; |
| 54 virtual bool HasAudioInputDevices() OVERRIDE; | 53 virtual bool HasAudioInputDevices() OVERRIDE; |
| 55 virtual base::string16 GetAudioInputDeviceModel() OVERRIDE; | 54 virtual base::string16 GetAudioInputDeviceModel() OVERRIDE; |
| 56 virtual void ShowAudioInputSettings() OVERRIDE {} | 55 virtual void ShowAudioInputSettings() OVERRIDE {} |
| 57 virtual int GetSession(int render_process_id, | 56 virtual int GetSession(int render_process_id, |
| 58 int render_view_id, | 57 int render_view_id, |
| 59 int request_id) const OVERRIDE; | 58 int request_id) const OVERRIDE; |
| 60 virtual const SpeechRecognitionSessionConfig& GetSessionConfig( | 59 virtual const SpeechRecognitionSessionConfig& GetSessionConfig( |
| 61 int session_id) const OVERRIDE; | 60 int session_id) const OVERRIDE; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 74 bool did_cancel_all_; | 73 bool did_cancel_all_; |
| 75 bool should_send_fake_response_; | 74 bool should_send_fake_response_; |
| 76 base::Closure recognition_started_closure_; | 75 base::Closure recognition_started_closure_; |
| 77 | 76 |
| 78 DISALLOW_COPY_AND_ASSIGN(FakeSpeechRecognitionManager); | 77 DISALLOW_COPY_AND_ASSIGN(FakeSpeechRecognitionManager); |
| 79 }; | 78 }; |
| 80 | 79 |
| 81 } // namespace content | 80 } // namespace content |
| 82 | 81 |
| 83 #endif // CONTENT_PUBLIC_TEST_FAKE_SPEECH_RECOGNTION_MANAGER_H_ | 82 #endif // CONTENT_PUBLIC_TEST_FAKE_SPEECH_RECOGNTION_MANAGER_H_ |
| OLD | NEW |