| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |