OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/file_path.h" | 6 #include "base/file_path.h" |
7 #include "base/string_number_conversions.h" | 7 #include "base/string_number_conversions.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/browser.h" | |
10 #include "chrome/browser/renderer_host/render_view_host.h" | 9 #include "chrome/browser/renderer_host/render_view_host.h" |
11 #include "chrome/browser/speech/speech_input_dispatcher_host.h" | 10 #include "chrome/browser/speech/speech_input_dispatcher_host.h" |
12 #include "chrome/browser/speech/speech_input_manager.h" | 11 #include "chrome/browser/speech/speech_input_manager.h" |
13 #include "chrome/browser/tab_contents/tab_contents.h" | 12 #include "chrome/browser/tab_contents/tab_contents.h" |
| 13 #include "chrome/browser/ui/browser.h" |
14 #include "chrome/common/chrome_switches.h" | 14 #include "chrome/common/chrome_switches.h" |
15 #include "chrome/test/in_process_browser_test.h" | 15 #include "chrome/test/in_process_browser_test.h" |
16 #include "chrome/test/ui_test_utils.h" | 16 #include "chrome/test/ui_test_utils.h" |
17 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" | 17 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" |
18 | 18 |
19 namespace speech_input { | 19 namespace speech_input { |
20 class FakeSpeechInputManager; | 20 class FakeSpeechInputManager; |
21 } | 21 } |
22 | 22 |
23 // This class does not need to be refcounted (typically done by PostTask) since | 23 // This class does not need to be refcounted (typically done by PostTask) since |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 #else | 182 #else |
183 #define MAYBE_GrammarAttribute GrammarAttribute | 183 #define MAYBE_GrammarAttribute GrammarAttribute |
184 #endif | 184 #endif |
185 IN_PROC_BROWSER_TEST_F(SpeechInputBrowserTest, MAYBE_GrammarAttribute) { | 185 IN_PROC_BROWSER_TEST_F(SpeechInputBrowserTest, MAYBE_GrammarAttribute) { |
186 LoadAndRunSpeechInputTest(FILE_PATH_LITERAL("grammar_attribute.html")); | 186 LoadAndRunSpeechInputTest(FILE_PATH_LITERAL("grammar_attribute.html")); |
187 EXPECT_EQ("http://example.com/grammar.xml", | 187 EXPECT_EQ("http://example.com/grammar.xml", |
188 fake_speech_input_manager_.grammar()); | 188 fake_speech_input_manager_.grammar()); |
189 } | 189 } |
190 | 190 |
191 } // namespace speech_input | 191 } // namespace speech_input |
OLD | NEW |