OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/extensions/extension_apitest.h" | 8 #include "chrome/browser/extensions/extension_apitest.h" |
9 #include "chrome/browser/extensions/speech_input/extension_speech_input_api.h" | 9 #include "chrome/browser/speech/extension_speech_input_api.h" |
10 #include "chrome/browser/extensions/speech_input/extension_speech_input_manager.
h" | 10 #include "chrome/browser/speech/extension_speech_input_manager.h" |
11 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/common/chrome_notification_types.h" | 12 #include "chrome/common/chrome_notification_types.h" |
13 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
14 #include "content/browser/speech/speech_recognizer.h" | 14 #include "content/browser/speech/speech_recognizer.h" |
15 #include "content/common/speech_input_result.h" | 15 #include "content/common/speech_input_result.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
18 using content::BrowserThread; | 18 using content::BrowserThread; |
19 | 19 |
20 namespace net { | 20 namespace net { |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 SetRecognitionResult(result); | 188 SetRecognitionResult(result); |
189 ASSERT_TRUE(RunExtensionTest("speech_input/recognition")) << message_; | 189 ASSERT_TRUE(RunExtensionTest("speech_input/recognition")) << message_; |
190 } | 190 } |
191 | 191 |
192 IN_PROC_BROWSER_TEST_F(ExtensionSpeechInputApiTest, RecognitionError) { | 192 IN_PROC_BROWSER_TEST_F(ExtensionSpeechInputApiTest, RecognitionError) { |
193 AutoManagerHook hook(this); | 193 AutoManagerHook hook(this); |
194 | 194 |
195 SetRecognitionError(speech_input::kErrorNetwork); | 195 SetRecognitionError(speech_input::kErrorNetwork); |
196 ASSERT_TRUE(RunExtensionTest("speech_input/recognition_error")) << message_; | 196 ASSERT_TRUE(RunExtensionTest("speech_input/recognition_error")) << message_; |
197 } | 197 } |
OLD | NEW |