Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Side by Side Diff: chrome/browser/crash_recovery_browsertest.cc

Issue 5043001: Cleanup: Include browser.h -> ui/browser.h [Part 1]. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/cocoa/browser_test_helper.h ('k') | chrome/browser/dock_info_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/browser_test_helper.h ('k') | chrome/browser/dock_info_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698