OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/string_util.h" | 5 #include "base/string_util.h" |
6 #include "chrome/browser/instant/instant_overlay.h" | |
7 #include "chrome/browser/instant/instant_test_utils.h" | |
8 #include "chrome/browser/instant/search.h" | 6 #include "chrome/browser/instant/search.h" |
9 #include "chrome/browser/task_manager/task_manager.h" | 7 #include "chrome/browser/task_manager/task_manager.h" |
10 #include "chrome/browser/task_manager/task_manager_browsertest_util.h" | 8 #include "chrome/browser/task_manager/task_manager_browsertest_util.h" |
11 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/browser/ui/browser_commands.h" | 10 #include "chrome/browser/ui/browser_commands.h" |
13 #include "chrome/browser/ui/host_desktop.h" | 11 #include "chrome/browser/ui/host_desktop.h" |
14 #include "chrome/browser/ui/omnibox/omnibox_view.h" | 12 #include "chrome/browser/ui/omnibox/omnibox_view.h" |
| 13 #include "chrome/browser/ui/search/instant_overlay.h" |
| 14 #include "chrome/browser/ui/search/instant_test_utils.h" |
15 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 15 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
16 #include "chrome/common/chrome_notification_types.h" | 16 #include "chrome/common/chrome_notification_types.h" |
17 #include "chrome/test/base/in_process_browser_test.h" | 17 #include "chrome/test/base/in_process_browser_test.h" |
18 #include "chrome/test/base/interactive_test_utils.h" | 18 #include "chrome/test/base/interactive_test_utils.h" |
19 #include "chrome/test/base/ui_test_utils.h" | 19 #include "chrome/test/base/ui_test_utils.h" |
20 #include "content/public/browser/navigation_controller.h" | 20 #include "content/public/browser/navigation_controller.h" |
21 #include "content/public/browser/navigation_entry.h" | 21 #include "content/public/browser/navigation_entry.h" |
22 #include "content/public/browser/notification_service.h" | 22 #include "content/public/browser/notification_service.h" |
23 #include "content/public/browser/render_process_host.h" | 23 #include "content/public/browser/render_process_host.h" |
24 #include "content/public/browser/web_contents.h" | 24 #include "content/public/browser/web_contents.h" |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 EXPECT_EQ(ASCIIToUTF16(""), GetBlueText()); | 303 EXPECT_EQ(ASCIIToUTF16(""), GetBlueText()); |
304 selected = true; | 304 selected = true; |
305 EXPECT_TRUE(GetSelectionState(&selected)); | 305 EXPECT_TRUE(GetSelectionState(&selected)); |
306 EXPECT_FALSE(selected); | 306 EXPECT_FALSE(selected); |
307 | 307 |
308 // Press Enter. Instant should search for "e.co". | 308 // Press Enter. Instant should search for "e.co". |
309 EXPECT_TRUE(PressEnterAndWaitForNavigationWithTitle( | 309 EXPECT_TRUE(PressEnterAndWaitForNavigationWithTitle( |
310 instant()->GetOverlayContents(), | 310 instant()->GetOverlayContents(), |
311 ASCIIToUTF16("e.co - Google Search"))); | 311 ASCIIToUTF16("e.co - Google Search"))); |
312 } | 312 } |
OLD | NEW |