| 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/keyboard_codes.h" | 5 #include "base/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 "chrome/browser/automation/ui_controls.h" | 9 #include "chrome/browser/automation/ui_controls.h" |
| 9 #include "chrome/browser/browser.h" | 10 #include "chrome/browser/browser.h" |
| 10 #include "chrome/browser/browser_window.h" | 11 #include "chrome/browser/browser_window.h" |
| 11 #include "chrome/browser/find_bar_controller.h" | 12 #include "chrome/browser/find_bar_controller.h" |
| 12 #include "chrome/browser/tab_contents/tab_contents.h" | 13 #include "chrome/browser/tab_contents/tab_contents.h" |
| 13 #include "chrome/browser/views/find_bar_host.h" | 14 #include "chrome/browser/views/find_bar_host.h" |
| 14 #include "chrome/browser/views/frame/browser_view.h" | 15 #include "chrome/browser/views/frame/browser_view.h" |
| 15 #include "chrome/browser/view_ids.h" | 16 #include "chrome/browser/view_ids.h" |
| 16 #include "chrome/test/in_process_browser_test.h" | 17 #include "chrome/test/in_process_browser_test.h" |
| 17 #include "chrome/test/ui_test_utils.h" | 18 #include "chrome/test/ui_test_utils.h" |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 // Press F3 to trigger FindNext. | 227 // Press F3 to trigger FindNext. |
| 227 ui_controls::SendKeyPressNotifyWhenDone(window, base::VKEY_F3, | 228 ui_controls::SendKeyPressNotifyWhenDone(window, base::VKEY_F3, |
| 228 false, false, false, false, // No modifiers. | 229 false, false, false, false, // No modifiers. |
| 229 new MessageLoop::QuitTask()); | 230 new MessageLoop::QuitTask()); |
| 230 ui_test_utils::RunMessageLoop(); | 231 ui_test_utils::RunMessageLoop(); |
| 231 | 232 |
| 232 // After the Find box has been reopened, it should still have no prepopulate | 233 // After the Find box has been reopened, it should still have no prepopulate |
| 233 // value. | 234 // value. |
| 234 EXPECT_EQ(string16(), GetFindBarText()); | 235 EXPECT_EQ(string16(), GetFindBarText()); |
| 235 } | 236 } |
| OLD | NEW |