| 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/file_util.h" | 5 #include "base/file_util.h" |
| 6 #include "base/message_loop.h" | 6 #include "base/message_loop.h" |
| 7 #include "base/string16.h" | 7 #include "base/string16.h" |
| 8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/browser/cancelable_request.h" | 10 #include "chrome/browser/common/cancelable_request.h" |
| 11 #include "chrome/browser/history/history.h" | 11 #include "chrome/browser/history/history.h" |
| 12 #include "chrome/browser/history/history_service_factory.h" | 12 #include "chrome/browser/history/history_service_factory.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
| 15 #include "chrome/browser/ui/browser_commands.h" | 15 #include "chrome/browser/ui/browser_commands.h" |
| 16 #include "chrome/browser/ui/browser_navigator.h" | 16 #include "chrome/browser/ui/browser_navigator.h" |
| 17 #include "chrome/browser/ui/browser_tabstrip.h" | 17 #include "chrome/browser/ui/browser_tabstrip.h" |
| 18 #include "chrome/browser/ui/browser_window.h" | 18 #include "chrome/browser/ui/browser_window.h" |
| 19 #include "chrome/browser/ui/chrome_pages.h" | 19 #include "chrome/browser/ui/chrome_pages.h" |
| 20 #include "chrome/browser/ui/find_bar/find_bar.h" | 20 #include "chrome/browser/ui/find_bar/find_bar.h" |
| (...skipping 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1494 content::RunAllPendingInMessageLoop(); // Needed on Linux. | 1494 content::RunAllPendingInMessageLoop(); // Needed on Linux. |
| 1495 EXPECT_TRUE(GetFindBarWindowInfo(&position, NULL)); | 1495 EXPECT_TRUE(GetFindBarWindowInfo(&position, NULL)); |
| 1496 | 1496 |
| 1497 ui_test_utils::NavigateToURLWithDisposition( | 1497 ui_test_utils::NavigateToURLWithDisposition( |
| 1498 browser(), url, NEW_FOREGROUND_TAB, | 1498 browser(), url, NEW_FOREGROUND_TAB, |
| 1499 ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION); | 1499 ui_test_utils::BROWSER_TEST_WAIT_FOR_NAVIGATION); |
| 1500 chrome::CloseTab(browser()); | 1500 chrome::CloseTab(browser()); |
| 1501 EXPECT_TRUE(GetFindBarWindowInfo(&position2, NULL)); | 1501 EXPECT_TRUE(GetFindBarWindowInfo(&position2, NULL)); |
| 1502 EXPECT_EQ(position, position2); | 1502 EXPECT_EQ(position, position2); |
| 1503 } | 1503 } |
| OLD | NEW |