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

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

Issue 629203002: Replace OVERRIDE and FINAL with override and final in content/public/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « content/public/test/download_test_observer.h ('k') | content/public/test/frame_load_waiter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 25 matching lines...) Expand all
36 bool should_send_fake_response() { 36 bool should_send_fake_response() {
37 return should_send_fake_response_; 37 return should_send_fake_response_;
38 } 38 }
39 39
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 AbortAllSessionsForRenderProcess(int render_process_id) OVERRIDE; 50 virtual void AbortAllSessionsForRenderProcess(int render_process_id) override;
51 virtual void AbortAllSessionsForRenderView(int render_process_id, 51 virtual void AbortAllSessionsForRenderView(int render_process_id,
52 int render_view_id) OVERRIDE; 52 int render_view_id) override;
53 virtual bool HasAudioInputDevices() OVERRIDE; 53 virtual bool HasAudioInputDevices() override;
54 virtual base::string16 GetAudioInputDeviceModel() OVERRIDE; 54 virtual base::string16 GetAudioInputDeviceModel() override;
55 virtual void ShowAudioInputSettings() OVERRIDE {} 55 virtual void ShowAudioInputSettings() override {}
56 virtual int GetSession(int render_process_id, 56 virtual int GetSession(int render_process_id,
57 int render_view_id, 57 int render_view_id,
58 int request_id) const OVERRIDE; 58 int request_id) const override;
59 virtual const SpeechRecognitionSessionConfig& GetSessionConfig( 59 virtual const SpeechRecognitionSessionConfig& GetSessionConfig(
60 int session_id) const OVERRIDE; 60 int session_id) const override;
61 virtual SpeechRecognitionSessionContext GetSessionContext( 61 virtual SpeechRecognitionSessionContext GetSessionContext(
62 int session_id) const OVERRIDE; 62 int session_id) const override;
63 63
64 private: 64 private:
65 void SetFakeRecognitionResult(); 65 void SetFakeRecognitionResult();
66 66
67 int session_id_; 67 int session_id_;
68 SpeechRecognitionEventListener* listener_; 68 SpeechRecognitionEventListener* listener_;
69 SpeechRecognitionSessionConfig session_config_; 69 SpeechRecognitionSessionConfig session_config_;
70 SpeechRecognitionSessionContext session_ctx_; 70 SpeechRecognitionSessionContext session_ctx_;
71 std::string fake_result_; 71 std::string fake_result_;
72 std::string grammar_; 72 std::string grammar_;
73 bool did_cancel_all_; 73 bool did_cancel_all_;
74 bool should_send_fake_response_; 74 bool should_send_fake_response_;
75 base::Closure recognition_started_closure_; 75 base::Closure recognition_started_closure_;
76 76
77 DISALLOW_COPY_AND_ASSIGN(FakeSpeechRecognitionManager); 77 DISALLOW_COPY_AND_ASSIGN(FakeSpeechRecognitionManager);
78 }; 78 };
79 79
80 } // namespace content 80 } // namespace content
81 81
82 #endif // CONTENT_PUBLIC_TEST_FAKE_SPEECH_RECOGNTION_MANAGER_H_ 82 #endif // CONTENT_PUBLIC_TEST_FAKE_SPEECH_RECOGNTION_MANAGER_H_
OLDNEW
« no previous file with comments | « content/public/test/download_test_observer.h ('k') | content/public/test/frame_load_waiter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698