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_RECOGNITION_MANAGER_H_ |
6 #define CONTENT_PUBLIC_TEST_FAKE_SPEECH_RECOGNTION_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 "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" |
11 #include "content/public/browser/speech_recognition_session_context.h" | 11 #include "content/public/browser/speech_recognition_session_context.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 // Fake SpeechRecognitionManager class that can be used for tests. | 15 // Fake SpeechRecognitionManager class that can be used for tests. |
16 // By default the recognition manager will respond with "Pictures of the moon" | 16 // By default the recognition manager will respond with "Pictures of the moon" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 std::string grammar_; | 71 std::string grammar_; |
72 bool did_cancel_all_; | 72 bool did_cancel_all_; |
73 bool should_send_fake_response_; | 73 bool should_send_fake_response_; |
74 base::Closure recognition_started_closure_; | 74 base::Closure recognition_started_closure_; |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(FakeSpeechRecognitionManager); | 76 DISALLOW_COPY_AND_ASSIGN(FakeSpeechRecognitionManager); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace content | 79 } // namespace content |
80 | 80 |
81 #endif // CONTENT_PUBLIC_TEST_FAKE_SPEECH_RECOGNTION_MANAGER_H_ | 81 #endif // CONTENT_PUBLIC_TEST_FAKE_SPEECH_RECOGNITION_MANAGER_H_ |
OLD | NEW |