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

Side by Side Diff: chrome/browser/ui/webui/options2/chromeos/guest_mode_options_ui2_uitest.cc

Issue 9814030: get rid of old options pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 8 years, 9 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/webui/options2/options_ui2_uitest.h" 5 #include "chrome/browser/ui/webui/options2/options_ui2_uitest.h"
6 #include "chrome/common/chrome_switches.h" 6 #include "chrome/common/chrome_switches.h"
7 #include "chrome/test/automation/automation_proxy.h" 7 #include "chrome/test/automation/automation_proxy.h"
8 #include "chrome/test/automation/browser_proxy.h" 8 #include "chrome/test/automation/browser_proxy.h"
9 #include "chrome/test/automation/tab_proxy.h" 9 #include "chrome/test/automation/tab_proxy.h"
10 #include "chrome/test/ui/ui_test.h" 10 #include "chrome/test/ui/ui_test.h"
11 11
12 namespace { 12 namespace {
13 13
14 // Same as OptionsUITest but launches with Guest mode command line switches. 14 // Same as OptionsUITest but launches with Guest mode command line switches.
15 class GuestModeOptionsUITest : public OptionsUITest { 15 class GuestModeOptionsUITest : public options2::OptionsUITest {
16 public: 16 public:
17 GuestModeOptionsUITest() : OptionsUITest() { 17 GuestModeOptionsUITest() : OptionsUITest() {
18 launch_arguments_.AppendSwitch(switches::kGuestSession); 18 launch_arguments_.AppendSwitch(switches::kGuestSession);
19 launch_arguments_.AppendSwitch(switches::kIncognito); 19 launch_arguments_.AppendSwitch(switches::kIncognito);
20 } 20 }
21 }; 21 };
22 22
23 TEST_F(GuestModeOptionsUITest, LoadOptionsByURL) { 23 TEST_F(GuestModeOptionsUITest, LoadOptionsByURL) {
24 scoped_refptr<BrowserProxy> browser(automation()->GetBrowserWindow(0)); 24 scoped_refptr<BrowserProxy> browser(automation()->GetBrowserWindow(0));
25 ASSERT_TRUE(browser.get()); 25 ASSERT_TRUE(browser.get());
26 26
27 scoped_refptr<TabProxy> tab = browser->GetActiveTab(); 27 scoped_refptr<TabProxy> tab = browser->GetActiveTab();
28 ASSERT_TRUE(tab.get()); 28 ASSERT_TRUE(tab.get());
29 29
30 NavigateToSettings(tab); 30 NavigateToSettings(tab);
31 VerifyTitle(tab); 31 VerifyTitle(tab);
32 VerifyNavbar(tab); 32 VerifyNavbar(tab);
33 VerifySections(tab);
34 } 33 }
35 34
36 } // namespace 35 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698