| 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/renderer_host/render_view_host.h" | 9 #include "chrome/browser/renderer_host/render_view_host.h" |
| 10 #include "chrome/browser/speech/speech_input_dispatcher_host.h" | 10 #include "chrome/browser/speech/speech_input_dispatcher_host.h" |
| 11 #include "chrome/browser/speech/speech_input_manager.h" | 11 #include "chrome/browser/speech/speech_input_manager.h" |
| 12 #include "chrome/browser/tab_contents/tab_contents.h" | 12 #include "chrome/browser/tab_contents/tab_contents.h" |
| 13 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
| 14 #include "chrome/common/chrome_switches.h" | |
| 15 #include "chrome/test/in_process_browser_test.h" | 14 #include "chrome/test/in_process_browser_test.h" |
| 16 #include "chrome/test/ui_test_utils.h" | 15 #include "chrome/test/ui_test_utils.h" |
| 17 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" | 16 #include "third_party/WebKit/WebKit/chromium/public/WebInputEvent.h" |
| 18 | 17 |
| 19 namespace speech_input { | 18 namespace speech_input { |
| 20 class FakeSpeechInputManager; | 19 class FakeSpeechInputManager; |
| 21 } | 20 } |
| 22 | 21 |
| 23 // This class does not need to be refcounted (typically done by PostTask) since | 22 // This class does not need to be refcounted (typically done by PostTask) since |
| 24 // it will outlive the test and gets released only when the test shuts down. | 23 // it will outlive the test and gets released only when the test shuts down. |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 #define MAYBE_GrammarAttribute FLAKY_GrammarAttribute | 180 #define MAYBE_GrammarAttribute FLAKY_GrammarAttribute |
| 182 #else | 181 #else |
| 183 #define MAYBE_GrammarAttribute GrammarAttribute | 182 #define MAYBE_GrammarAttribute GrammarAttribute |
| 184 #endif | 183 #endif |
| 185 IN_PROC_BROWSER_TEST_F(SpeechInputBrowserTest, MAYBE_GrammarAttribute) { | 184 IN_PROC_BROWSER_TEST_F(SpeechInputBrowserTest, MAYBE_GrammarAttribute) { |
| 186 LoadAndRunSpeechInputTest(FILE_PATH_LITERAL("grammar_attribute.html")); | 185 LoadAndRunSpeechInputTest(FILE_PATH_LITERAL("grammar_attribute.html")); |
| 187 EXPECT_EQ("http://example.com/grammar.xml", | 186 EXPECT_EQ("http://example.com/grammar.xml", |
| 188 fake_speech_input_manager_.grammar()); | 187 fake_speech_input_manager_.grammar()); |
| 189 } | 188 } |
| 190 | 189 |
| 191 } // namespace speech_input | 190 } // namespace speech_input |
| OLD | NEW |