OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/utf_string_conversions.h" | 5 #include "base/utf_string_conversions.h" |
6 #include "chrome/browser/automation/automation_util.h" | 6 #include "chrome/browser/automation/automation_util.h" |
7 #include "chrome/browser/extensions/extension_test_message_listener.h" | 7 #include "chrome/browser/extensions/extension_test_message_listener.h" |
8 #include "chrome/browser/extensions/platform_app_browsertest_util.h" | 8 #include "chrome/browser/extensions/platform_app_browsertest_util.h" |
9 #include "chrome/browser/prerender/prerender_link_manager.h" | 9 #include "chrome/browser/prerender/prerender_link_manager.h" |
10 #include "chrome/browser/prerender/prerender_link_manager_factory.h" | 10 #include "chrome/browser/prerender/prerender_link_manager_factory.h" |
11 #include "chrome/browser/profiles/profile.h" | |
12 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
13 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 12 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
14 #include "chrome/test/base/ui_test_utils.h" | 13 #include "chrome/test/base/ui_test_utils.h" |
15 #include "chrome/test/base/test_launcher_utils.h" | 14 #include "chrome/test/base/test_launcher_utils.h" |
16 #include "content/public/browser/notification_service.h" | 15 #include "content/public/browser/notification_service.h" |
17 #include "content/public/browser/render_process_host.h" | 16 #include "content/public/browser/render_process_host.h" |
18 #include "content/public/test/browser_test_utils.h" | 17 #include "content/public/test/browser_test_utils.h" |
19 #include "content/public/test/fake_speech_recognition_manager.h" | 18 #include "content/public/test/fake_speech_recognition_manager.h" |
20 #include "ui/compositor/compositor_setup.h" | 19 #include "ui/compositor/compositor_setup.h" |
21 #include "ui/gl/gl_switches.h" | 20 #include "ui/gl/gl_switches.h" |
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 // Click on the guest (center of the WebContents), the guest is rendered in a | 701 // Click on the guest (center of the WebContents), the guest is rendered in a |
703 // way that this will trigger clicking on speech recognition input mic. | 702 // way that this will trigger clicking on speech recognition input mic. |
704 SimulateMouseClick(guest_web_contents, 0, WebKit::WebMouseEvent::ButtonLeft); | 703 SimulateMouseClick(guest_web_contents, 0, WebKit::WebMouseEvent::ButtonLeft); |
705 | 704 |
706 string16 expected_title(ASCIIToUTF16("PASSED")); | 705 string16 expected_title(ASCIIToUTF16("PASSED")); |
707 string16 error_title(ASCIIToUTF16("FAILED")); | 706 string16 error_title(ASCIIToUTF16("FAILED")); |
708 content::TitleWatcher title_watcher(guest_web_contents, expected_title); | 707 content::TitleWatcher title_watcher(guest_web_contents, expected_title); |
709 title_watcher.AlsoWaitForTitle(error_title); | 708 title_watcher.AlsoWaitForTitle(error_title); |
710 EXPECT_EQ(expected_title, title_watcher.WaitAndGetTitle()); | 709 EXPECT_EQ(expected_title, title_watcher.WaitAndGetTitle()); |
711 } | 710 } |
OLD | NEW |