| 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/file_path.h" | 5 #include "base/file_path.h" |
| 6 #include "chrome/browser/browser.h" | |
| 7 #include "chrome/browser/tab_contents/navigation_entry.h" | 6 #include "chrome/browser/tab_contents/navigation_entry.h" |
| 8 #include "chrome/browser/tab_contents/tab_contents.h" | 7 #include "chrome/browser/tab_contents/tab_contents.h" |
| 8 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/common/notification_type.h" | 9 #include "chrome/common/notification_type.h" |
| 10 #include "chrome/common/page_transition_types.h" | 10 #include "chrome/common/page_transition_types.h" |
| 11 #include "chrome/common/url_constants.h" | 11 #include "chrome/common/url_constants.h" |
| 12 #include "chrome/test/in_process_browser_test.h" | 12 #include "chrome/test/in_process_browser_test.h" |
| 13 #include "chrome/test/ui_test_utils.h" | 13 #include "chrome/test/ui_test_utils.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 void SimulateRendererCrash(Browser* browser) { | 18 void SimulateRendererCrash(Browser* browser) { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 ASSERT_TRUE(ui_test_utils::GetCurrentTabTitle(browser(), | 73 ASSERT_TRUE(ui_test_utils::GetCurrentTabTitle(browser(), |
| 74 &title_before_crash)); | 74 &title_before_crash)); |
| 75 SimulateRendererCrash(browser()); | 75 SimulateRendererCrash(browser()); |
| 76 browser()->Reload(CURRENT_TAB); | 76 browser()->Reload(CURRENT_TAB); |
| 77 ASSERT_TRUE(ui_test_utils::WaitForNavigationInCurrentTab(browser())); | 77 ASSERT_TRUE(ui_test_utils::WaitForNavigationInCurrentTab(browser())); |
| 78 ASSERT_TRUE(ui_test_utils::GetCurrentTabTitle(browser(), | 78 ASSERT_TRUE(ui_test_utils::GetCurrentTabTitle(browser(), |
| 79 &title_after_crash)); | 79 &title_after_crash)); |
| 80 EXPECT_EQ(title_before_crash, title_after_crash); | 80 EXPECT_EQ(title_before_crash, title_after_crash); |
| 81 } | 81 } |
| OLD | NEW |