Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / chrome / browser / ui / webui / options / chromeos / guest_mode_options_ui_browsertest.cc
blob92cd2a88b0c3200ee0c4ab344b0e116a95937ece
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.
5 #include "base/command_line.h"
6 #include "chrome/browser/chromeos/login/user_manager.h"
7 #include "chrome/browser/ui/webui/options/options_ui_browsertest.h"
8 #include "chrome/common/chrome_switches.h"
9 #include "chrome/test/base/testing_profile.h"
10 #include "chromeos/chromeos_switches.h"
12 namespace {
14 // Same as OptionsUIBrowserTest but launches with Guest mode command line
15 // switches.
16 class GuestModeOptionsBrowserTest : public options::OptionsUIBrowserTest {
17 public:
18 GuestModeOptionsBrowserTest() : OptionsUIBrowserTest() {}
20 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
21 command_line->AppendSwitch(chromeos::switches::kGuestSession);
22 command_line->AppendSwitchASCII(chromeos::switches::kLoginUser,
23 chromeos::UserManager::kGuestUserName);
24 command_line->AppendSwitchASCII(chromeos::switches::kLoginProfile,
25 TestingProfile::kTestUserProfileDir);
26 command_line->AppendSwitch(switches::kIncognito);
30 IN_PROC_BROWSER_TEST_F(GuestModeOptionsBrowserTest, LoadOptionsByURL) {
31 NavigateToSettings();
32 VerifyTitle();
33 VerifyNavbar();
36 } // namespace