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

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

Issue 8895023: Options2: Pull the trigger. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DIAF. Created 9 years 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/webui/options2/options_ui_uitest.h"
6 #include "chrome/common/chrome_switches.h"
7 #include "chrome/test/automation/automation_proxy.h"
8 #include "chrome/test/automation/browser_proxy.h"
9 #include "chrome/test/automation/tab_proxy.h"
10 #include "chrome/test/ui/ui_test.h"
11
12 namespace {
13
14 // Same as OptionsUITest but launches with Guest mode command line switches.
15 class GuestModeOptionsUITest : public OptionsUITest {
16 public:
17 GuestModeOptionsUITest() : OptionsUITest() {
18 launch_arguments_.AppendSwitch(switches::kGuestSession);
19 launch_arguments_.AppendSwitch(switches::kIncognito);
20 }
21 };
22
23 // See bug 104393.
24 #if defined(USE_AURA)
25 #define MAYBE_LoadOptionsByURL FAILS_LoadOptionsByURL
26 #else
27 #define MAYBE_LoadOptionsByURL LoadOptionsByURL
28 #endif
29
30 TEST_F(GuestModeOptionsUITest, MAYBE_LoadOptionsByURL) {
31 scoped_refptr<BrowserProxy> browser(automation()->GetBrowserWindow(0));
32 ASSERT_TRUE(browser.get());
33
34 scoped_refptr<TabProxy> tab = browser->GetActiveTab();
35 ASSERT_TRUE(tab.get());
36
37 NavigateToSettings(tab);
38 VerifyTitle(tab);
39 VerifyNavbar(tab);
40 VerifySections(tab);
41 }
42
43 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698