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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/format_macros.h" | 8 #include "base/format_macros.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 14 #include "base/utf_string_conversions.h" |
14 #include "chrome/browser/automation/ui_controls.h" | 15 #include "chrome/browser/automation/ui_controls.h" |
15 #include "chrome/browser/browser.h" | 16 #include "chrome/browser/browser.h" |
16 #include "chrome/browser/browser_window.h" | 17 #include "chrome/browser/browser_window.h" |
17 #include "chrome/browser/renderer_host/render_view_host.h" | 18 #include "chrome/browser/renderer_host/render_view_host.h" |
18 #include "chrome/browser/renderer_host/render_widget_host_view.h" | 19 #include "chrome/browser/renderer_host/render_widget_host_view.h" |
19 #include "chrome/browser/tab_contents/interstitial_page.h" | 20 #include "chrome/browser/tab_contents/interstitial_page.h" |
20 #include "chrome/browser/tab_contents/tab_contents.h" | 21 #include "chrome/browser/tab_contents/tab_contents.h" |
21 #include "chrome/browser/tab_contents/tab_contents_view.h" | 22 #include "chrome/browser/tab_contents/tab_contents_view.h" |
22 #include "chrome/browser/view_ids.h" | 23 #include "chrome/browser/view_ids.h" |
23 #include "chrome/common/chrome_paths.h" | 24 #include "chrome/common/chrome_paths.h" |
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
814 ui_test_utils::CrashTab(browser()->GetSelectedTabContents()); | 815 ui_test_utils::CrashTab(browser()->GetSelectedTabContents()); |
815 browser()->Reload(CURRENT_TAB); | 816 browser()->Reload(CURRENT_TAB); |
816 ASSERT_TRUE(ui_test_utils::WaitForNavigationInCurrentTab(browser())); | 817 ASSERT_TRUE(ui_test_utils::WaitForNavigationInCurrentTab(browser())); |
817 | 818 |
818 // Focus should now be on the tab contents. | 819 // Focus should now be on the tab contents. |
819 browser()->ShowDownloadsTab(); | 820 browser()->ShowDownloadsTab(); |
820 ASSERT_TRUE(IsViewFocused(VIEW_ID_TAB_CONTAINER_FOCUS_VIEW)); | 821 ASSERT_TRUE(IsViewFocused(VIEW_ID_TAB_CONTAINER_FOCUS_VIEW)); |
821 } | 822 } |
822 | 823 |
823 } // namespace | 824 } // namespace |
OLD | NEW |