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

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

Issue 2651373002: Removing SpeechRecognitionManager::HasAudioInputDevices() and ShowAudioInputSettings() (Closed)
Patch Set: fix for tests Created 3 years, 11 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
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_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
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
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_
OLDNEW
« no previous file with comments | « content/public/browser/speech_recognition_manager.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