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 "app/keyboard_codes.h" | 5 #include "app/keyboard_codes.h" |
6 #include "base/string_util.h" | 6 #include "base/string_util.h" |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/browser.h" | |
9 #include "chrome/browser/find_bar_controller.h" | 8 #include "chrome/browser/find_bar_controller.h" |
10 #include "chrome/browser/tab_contents/tab_contents.h" | 9 #include "chrome/browser/tab_contents/tab_contents.h" |
11 #include "chrome/browser/tabs/tab_strip_model.h" | 10 #include "chrome/browser/tabs/tab_strip_model.h" |
| 11 #include "chrome/browser/ui/browser.h" |
12 #include "chrome/browser/views/find_bar_host.h" | 12 #include "chrome/browser/views/find_bar_host.h" |
13 #include "chrome/browser/views/frame/browser_view.h" | 13 #include "chrome/browser/views/frame/browser_view.h" |
14 #include "chrome/browser/view_ids.h" | 14 #include "chrome/browser/view_ids.h" |
15 #include "chrome/test/in_process_browser_test.h" | 15 #include "chrome/test/in_process_browser_test.h" |
16 #include "chrome/test/ui_test_utils.h" | 16 #include "chrome/test/ui_test_utils.h" |
17 #include "net/test/test_server.h" | 17 #include "net/test/test_server.h" |
18 #include "views/focus/focus_manager.h" | 18 #include "views/focus/focus_manager.h" |
19 #include "views/view.h" | 19 #include "views/view.h" |
20 | 20 |
21 namespace { | 21 namespace { |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 browser(), app::VKEY_ESCAPE, false, false, false, false)); | 168 browser(), app::VKEY_ESCAPE, false, false, false, false)); |
169 | 169 |
170 // Press F3 to trigger FindNext. | 170 // Press F3 to trigger FindNext. |
171 ASSERT_TRUE(ui_test_utils::SendKeyPressSync( | 171 ASSERT_TRUE(ui_test_utils::SendKeyPressSync( |
172 browser(), app::VKEY_F3, false, false, false, false)); | 172 browser(), app::VKEY_F3, false, false, false, false)); |
173 | 173 |
174 // After the Find box has been reopened, it should still have no prepopulate | 174 // After the Find box has been reopened, it should still have no prepopulate |
175 // value. | 175 // value. |
176 EXPECT_EQ(string16(), GetFindBarText()); | 176 EXPECT_EQ(string16(), GetFindBarText()); |
177 } | 177 } |
OLD | NEW |