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

Side by Side Diff: content/public/test/fake_speech_recognition_manager.h

Issue 16286010: Removed the IsRecordingInProcess check for speech since it is not needed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed unused error code and relevant resource, cleaned up include Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/synchronization/waitable_event.h" 8 #include "base/synchronization/waitable_event.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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual int CreateSession( 47 virtual int CreateSession(
48 const SpeechRecognitionSessionConfig& config) OVERRIDE; 48 const SpeechRecognitionSessionConfig& config) OVERRIDE;
49 virtual void StartSession(int session_id) OVERRIDE; 49 virtual void StartSession(int session_id) OVERRIDE;
50 virtual void AbortSession(int session_id) OVERRIDE; 50 virtual void AbortSession(int session_id) OVERRIDE;
51 virtual void StopAudioCaptureForSession(int session_id) OVERRIDE; 51 virtual void StopAudioCaptureForSession(int session_id) OVERRIDE;
52 virtual void AbortAllSessionsForListener( 52 virtual void AbortAllSessionsForListener(
53 SpeechRecognitionEventListener* listener) OVERRIDE; 53 SpeechRecognitionEventListener* listener) OVERRIDE;
54 virtual void AbortAllSessionsForRenderView(int render_process_id, 54 virtual void AbortAllSessionsForRenderView(int render_process_id,
55 int render_view_id) OVERRIDE; 55 int render_view_id) OVERRIDE;
56 virtual bool HasAudioInputDevices() OVERRIDE; 56 virtual bool HasAudioInputDevices() OVERRIDE;
57 virtual bool IsCapturingAudio() OVERRIDE;
58 virtual string16 GetAudioInputDeviceModel() OVERRIDE; 57 virtual string16 GetAudioInputDeviceModel() OVERRIDE;
59 virtual void ShowAudioInputSettings() OVERRIDE {} 58 virtual void ShowAudioInputSettings() OVERRIDE {}
60 virtual int GetSession(int render_process_id, 59 virtual int GetSession(int render_process_id,
61 int render_view_id, 60 int render_view_id,
62 int request_id) const OVERRIDE; 61 int request_id) const OVERRIDE;
63 virtual const SpeechRecognitionSessionConfig& GetSessionConfig( 62 virtual const SpeechRecognitionSessionConfig& GetSessionConfig(
64 int session_id) const OVERRIDE; 63 int session_id) const OVERRIDE;
65 virtual SpeechRecognitionSessionContext GetSessionContext( 64 virtual SpeechRecognitionSessionContext GetSessionContext(
66 int session_id) const OVERRIDE; 65 int session_id) const OVERRIDE;
67 66
68 private: 67 private:
69 void SetFakeRecognitionResult(); 68 void SetFakeRecognitionResult();
70 69
71 int session_id_; 70 int session_id_;
72 SpeechRecognitionEventListener* listener_; 71 SpeechRecognitionEventListener* listener_;
73 SpeechRecognitionSessionConfig session_config_; 72 SpeechRecognitionSessionConfig session_config_;
74 SpeechRecognitionSessionContext session_ctx_; 73 SpeechRecognitionSessionContext session_ctx_;
75 std::string fake_result_; 74 std::string fake_result_;
76 std::string grammar_; 75 std::string grammar_;
77 bool did_cancel_all_; 76 bool did_cancel_all_;
78 bool should_send_fake_response_; 77 bool should_send_fake_response_;
79 base::WaitableEvent recognition_started_event_; 78 base::WaitableEvent recognition_started_event_;
80 79
81 DISALLOW_COPY_AND_ASSIGN(FakeSpeechRecognitionManager); 80 DISALLOW_COPY_AND_ASSIGN(FakeSpeechRecognitionManager);
82 }; 81 };
83 82
84 } // namespace content 83 } // namespace content
85 84
86 #endif // CONTENT_PUBLIC_TEST_FAKE_SPEECH_RECOGNTION_MANAGER_H_ 85 #endif // CONTENT_PUBLIC_TEST_FAKE_SPEECH_RECOGNTION_MANAGER_H_
OLDNEW
« no previous file with comments | « content/public/common/speech_recognition_error.h ('k') | content/public/test/fake_speech_recognition_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698