guest_mode_options_ui_browsertest.cc revision 558790d6acca3451cf3a6b497803a5f07d0bec58
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 3// found in the LICENSE file. 4 5#include "base/command_line.h" 6#include "chrome/browser/ui/webui/options/options_ui_browsertest.h" 7#include "chrome/common/chrome_switches.h" 8#include "chromeos/chromeos_switches.h" 9 10namespace { 11 12// Same as OptionsUIBrowserTest but launches with Guest mode command line 13// switches. 14class GuestModeOptionsBrowserTest : public options::OptionsUIBrowserTest { 15 public: 16 GuestModeOptionsBrowserTest() : OptionsUIBrowserTest() {} 17 18 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { 19 command_line->AppendSwitch(chromeos::switches::kGuestSession); 20 command_line->AppendSwitch(switches::kIncognito); 21 } 22}; 23 24IN_PROC_BROWSER_TEST_F(GuestModeOptionsBrowserTest, DISABLED_LoadOptionsByURL) { 25 NavigateToSettings(); 26 VerifyTitle(); 27 VerifyNavbar(); 28} 29 30} // namespace 31