Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: chrome/browser/ui/find_bar/find_bar_host_browsertest.cc

Issue 6204002: Carnitas: Remove chrome/browser/views, update references. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Yay, more syncing Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/cocoa/restart_browser.h ('k') | chrome/browser/ui/tabs/dock_info.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "app/keyboard_codes.h" 5 #include "app/keyboard_codes.h"
6 #include "base/message_loop.h" 6 #include "base/message_loop.h"
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/renderer_host/render_view_host.h" 10 #include "chrome/browser/renderer_host/render_view_host.h"
11 #include "chrome/browser/tab_contents/tab_contents.h" 11 #include "chrome/browser/tab_contents/tab_contents.h"
12 #include "chrome/browser/tab_contents/tab_contents_view.h" 12 #include "chrome/browser/tab_contents/tab_contents_view.h"
13 #include "chrome/browser/tabs/tab_strip_model.h" 13 #include "chrome/browser/tabs/tab_strip_model.h"
14 #include "chrome/browser/ui/browser.h" 14 #include "chrome/browser/ui/browser.h"
15 #include "chrome/browser/ui/browser_navigator.h" 15 #include "chrome/browser/ui/browser_navigator.h"
16 #include "chrome/browser/ui/browser_window.h" 16 #include "chrome/browser/ui/browser_window.h"
17 #include "chrome/browser/ui/find_bar/find_bar.h" 17 #include "chrome/browser/ui/find_bar/find_bar.h"
18 #include "chrome/browser/ui/find_bar/find_bar_controller.h" 18 #include "chrome/browser/ui/find_bar/find_bar_controller.h"
19 #include "chrome/browser/ui/find_bar/find_notification_details.h" 19 #include "chrome/browser/ui/find_bar/find_notification_details.h"
20 #include "chrome/test/in_process_browser_test.h" 20 #include "chrome/test/in_process_browser_test.h"
21 #include "chrome/test/ui_test_utils.h" 21 #include "chrome/test/ui_test_utils.h"
22 #include "net/test/test_server.h" 22 #include "net/test/test_server.h"
23 23
24 #if defined(TOOLKIT_VIEWS) 24 #if defined(TOOLKIT_VIEWS)
25 #include "chrome/browser/views/find_bar_host.h" 25 #include "chrome/browser/ui/views/find_bar_host.h"
26 #include "views/focus/focus_manager.h" 26 #include "views/focus/focus_manager.h"
27 #elif defined(TOOLKIT_GTK) 27 #elif defined(TOOLKIT_GTK)
28 #include "chrome/browser/gtk/slide_animator_gtk.h" 28 #include "chrome/browser/gtk/slide_animator_gtk.h"
29 #elif defined(OS_MACOSX) 29 #elif defined(OS_MACOSX)
30 #include "chrome/browser/ui/cocoa/find_bar_bridge.h" 30 #include "chrome/browser/ui/cocoa/find_bar_bridge.h"
31 #endif 31 #endif
32 32
33 const std::string kSimplePage = "404_is_enough_for_us.html"; 33 const std::string kSimplePage = "404_is_enough_for_us.html";
34 const std::string kFramePage = "files/find_in_page/frames.html"; 34 const std::string kFramePage = "files/find_in_page/frames.html";
35 const std::string kFrameData = "files/find_in_page/framedata_general.html"; 35 const std::string kFrameData = "files/find_in_page/framedata_general.html";
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after
1075 1075
1076 TabContents* tab = browser()->GetSelectedTabContents(); 1076 TabContents* tab = browser()->GetSelectedTabContents();
1077 int ordinal = 0; 1077 int ordinal = 0;
1078 FindInPageWchar(tab, L"link", kFwd, kIgnoreCase, &ordinal); 1078 FindInPageWchar(tab, L"link", kFwd, kIgnoreCase, &ordinal);
1079 EXPECT_EQ(ordinal, 1); 1079 EXPECT_EQ(ordinal, 1);
1080 1080
1081 // End the find session, click on the link. 1081 // End the find session, click on the link.
1082 tab->StopFinding(FindBarController::kActivateSelection); 1082 tab->StopFinding(FindBarController::kActivateSelection);
1083 EXPECT_TRUE(ui_test_utils::WaitForNavigationInCurrentTab(browser())); 1083 EXPECT_TRUE(ui_test_utils::WaitForNavigationInCurrentTab(browser()));
1084 } 1084 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/restart_browser.h ('k') | chrome/browser/ui/tabs/dock_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698