| 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/utf_string_conversions.h" |
| 7 #include "chrome/browser/browser.h" | 8 #include "chrome/browser/browser.h" |
| 8 #include "chrome/browser/speech/speech_input_dispatcher_host.h" | 9 #include "chrome/browser/speech/speech_input_dispatcher_host.h" |
| 9 #include "chrome/browser/speech/speech_input_manager.h" | 10 #include "chrome/browser/speech/speech_input_manager.h" |
| 10 #include "chrome/browser/tab_contents/tab_contents.h" | 11 #include "chrome/browser/tab_contents/tab_contents.h" |
| 11 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
| 12 #include "chrome/test/in_process_browser_test.h" | 13 #include "chrome/test/in_process_browser_test.h" |
| 13 #include "chrome/test/ui_test_utils.h" | 14 #include "chrome/test/ui_test_utils.h" |
| 14 | 15 |
| 15 namespace speech_input { | 16 namespace speech_input { |
| 16 class FakeSpeechInputManager; | 17 class FakeSpeechInputManager; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 GURL test_url = testUrl(FILE_PATH_LITERAL("basic_recognition.html")); | 95 GURL test_url = testUrl(FILE_PATH_LITERAL("basic_recognition.html")); |
| 95 ui_test_utils::NavigateToURLBlockUntilNavigationsComplete(browser(), | 96 ui_test_utils::NavigateToURLBlockUntilNavigationsComplete(browser(), |
| 96 test_url, | 97 test_url, |
| 97 2); | 98 2); |
| 98 | 99 |
| 99 // Check that the page got the result it expected. | 100 // Check that the page got the result it expected. |
| 100 EXPECT_EQ("pass", browser()->GetSelectedTabContents()->GetURL().ref()); | 101 EXPECT_EQ("pass", browser()->GetSelectedTabContents()->GetURL().ref()); |
| 101 } | 102 } |
| 102 | 103 |
| 103 } // namespace speech_input | 104 } // namespace speech_input |
| OLD | NEW |