| 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_RECOGNITION_MANAGER_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_FAKE_SPEECH_RECOGNITION_MANAGER_H_ |
| 6 #define CONTENT_PUBLIC_TEST_FAKE_SPEECH_RECOGNITION_MANAGER_H_ | 6 #define CONTENT_PUBLIC_TEST_FAKE_SPEECH_RECOGNITION_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "content/public/browser/speech_recognition_event_listener.h" | 10 #include "content/public/browser/speech_recognition_event_listener.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 void SetFakeResult(const std::string& result); | 47 void SetFakeResult(const std::string& result); |
| 48 | 48 |
| 49 // SpeechRecognitionManager methods. | 49 // SpeechRecognitionManager methods. |
| 50 int CreateSession(const SpeechRecognitionSessionConfig& config) override; | 50 int CreateSession(const SpeechRecognitionSessionConfig& config) override; |
| 51 void StartSession(int session_id) override; | 51 void StartSession(int session_id) override; |
| 52 void AbortSession(int session_id) override; | 52 void AbortSession(int session_id) override; |
| 53 void StopAudioCaptureForSession(int session_id) override; | 53 void StopAudioCaptureForSession(int session_id) override; |
| 54 void AbortAllSessionsForRenderProcess(int render_process_id) override; | 54 void AbortAllSessionsForRenderProcess(int render_process_id) override; |
| 55 void AbortAllSessionsForRenderView(int render_process_id, | 55 void AbortAllSessionsForRenderView(int render_process_id, |
| 56 int render_view_id) override; | 56 int render_view_id) override; |
| 57 bool HasAudioInputDevices() override; | |
| 58 void ShowAudioInputSettings() override {} | |
| 59 int GetSession(int render_process_id, | 57 int GetSession(int render_process_id, |
| 60 int render_view_id, | 58 int render_view_id, |
| 61 int request_id) const override; | 59 int request_id) const override; |
| 62 const SpeechRecognitionSessionConfig& GetSessionConfig( | 60 const SpeechRecognitionSessionConfig& GetSessionConfig( |
| 63 int session_id) const override; | 61 int session_id) const override; |
| 64 SpeechRecognitionSessionContext GetSessionContext( | 62 SpeechRecognitionSessionContext GetSessionContext( |
| 65 int session_id) const override; | 63 int session_id) const override; |
| 66 | 64 |
| 67 // SpeechRecognitionEventListener implementation. | 65 // SpeechRecognitionEventListener implementation. |
| 68 void OnRecognitionStart(int session_id) override {} | 66 void OnRecognitionStart(int session_id) override {} |
| (...skipping 26 matching lines...) Expand all Loading... |
| 95 bool should_send_fake_response_; | 93 bool should_send_fake_response_; |
| 96 base::Closure recognition_started_closure_; | 94 base::Closure recognition_started_closure_; |
| 97 SpeechRecognitionManagerDelegate* delegate_; // Not owned. | 95 SpeechRecognitionManagerDelegate* delegate_; // Not owned. |
| 98 | 96 |
| 99 DISALLOW_COPY_AND_ASSIGN(FakeSpeechRecognitionManager); | 97 DISALLOW_COPY_AND_ASSIGN(FakeSpeechRecognitionManager); |
| 100 }; | 98 }; |
| 101 | 99 |
| 102 } // namespace content | 100 } // namespace content |
| 103 | 101 |
| 104 #endif // CONTENT_PUBLIC_TEST_FAKE_SPEECH_RECOGNITION_MANAGER_H_ | 102 #endif // CONTENT_PUBLIC_TEST_FAKE_SPEECH_RECOGNITION_MANAGER_H_ |
| OLD | NEW |