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

Side by Side Diff: chrome/browser/ui/browser_navigator_browsertest_chromeos.cc

Issue 10546106: TabContentsWrapper -> TabContents, part 53. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/ui/browser_navigator_browsertest.h" 5 #include "chrome/browser/ui/browser_navigator_browsertest.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/common/chrome_switches.h" 8 #include "chrome/common/chrome_switches.h"
9 #include "chrome/browser/chromeos/login/login_utils.h" 9 #include "chrome/browser/chromeos/login/login_utils.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 p.url = GURL("chrome://chrome/settings"); 47 p.url = GURL("chrome://chrome/settings");
48 p.window_action = browser::NavigateParams::SHOW_WINDOW; 48 p.window_action = browser::NavigateParams::SHOW_WINDOW;
49 p.path_behavior = browser::NavigateParams::IGNORE_AND_NAVIGATE; 49 p.path_behavior = browser::NavigateParams::IGNORE_AND_NAVIGATE;
50 browser::Navigate(&p); 50 browser::Navigate(&p);
51 51
52 // Settings page should be opened in incognito window. 52 // Settings page should be opened in incognito window.
53 EXPECT_NE(browser(), p.browser); 53 EXPECT_NE(browser(), p.browser);
54 EXPECT_EQ(incognito_browser, p.browser); 54 EXPECT_EQ(incognito_browser, p.browser);
55 EXPECT_EQ(2, incognito_browser->tab_count()); 55 EXPECT_EQ(2, incognito_browser->tab_count());
56 EXPECT_EQ(GURL("chrome://chrome/settings"), 56 EXPECT_EQ(GURL("chrome://chrome/settings"),
57 incognito_browser->GetSelectedWebContents()->GetURL()); 57 incognito_browser->GetActiveWebContents()->GetURL());
58 } 58 }
59 59
60 } // namespace 60 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_navigator_browsertest.cc ('k') | chrome/browser/ui/browser_toolbar_model_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698