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

Side by Side Diff: chrome/browser/chromeos/policy/login_screen_default_policy_browsertest.cc

Issue 819133004: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <string> 5 #include <string>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 DISALLOW_COPY_AND_ASSIGN(LoginScreenDefaultPolicyBrowsertestBase); 96 DISALLOW_COPY_AND_ASSIGN(LoginScreenDefaultPolicyBrowsertestBase);
97 }; 97 };
98 98
99 class LoginScreenDefaultPolicyLoginScreenBrowsertest 99 class LoginScreenDefaultPolicyLoginScreenBrowsertest
100 : public LoginScreenDefaultPolicyBrowsertestBase { 100 : public LoginScreenDefaultPolicyBrowsertestBase {
101 protected: 101 protected:
102 LoginScreenDefaultPolicyLoginScreenBrowsertest(); 102 LoginScreenDefaultPolicyLoginScreenBrowsertest();
103 virtual ~LoginScreenDefaultPolicyLoginScreenBrowsertest(); 103 virtual ~LoginScreenDefaultPolicyLoginScreenBrowsertest();
104 104
105 // LoginScreenDefaultPolicyBrowsertestBase: 105 // LoginScreenDefaultPolicyBrowsertestBase:
106 virtual void SetUpCommandLine(CommandLine* command_line) override; 106 virtual void SetUpCommandLine(base::CommandLine* command_line) override;
107 virtual void SetUpOnMainThread() override; 107 virtual void SetUpOnMainThread() override;
108 virtual void TearDownOnMainThread() override; 108 virtual void TearDownOnMainThread() override;
109 109
110 void VerifyPrefFollowsRecommendation(const char* pref_name, 110 void VerifyPrefFollowsRecommendation(const char* pref_name,
111 const base::Value& recommended_value); 111 const base::Value& recommended_value);
112 112
113 private: 113 private:
114 DISALLOW_COPY_AND_ASSIGN(LoginScreenDefaultPolicyLoginScreenBrowsertest); 114 DISALLOW_COPY_AND_ASSIGN(LoginScreenDefaultPolicyLoginScreenBrowsertest);
115 }; 115 };
116 116
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 LoginScreenDefaultPolicyLoginScreenBrowsertest:: 160 LoginScreenDefaultPolicyLoginScreenBrowsertest::
161 LoginScreenDefaultPolicyLoginScreenBrowsertest() { 161 LoginScreenDefaultPolicyLoginScreenBrowsertest() {
162 } 162 }
163 163
164 LoginScreenDefaultPolicyLoginScreenBrowsertest:: 164 LoginScreenDefaultPolicyLoginScreenBrowsertest::
165 ~LoginScreenDefaultPolicyLoginScreenBrowsertest() { 165 ~LoginScreenDefaultPolicyLoginScreenBrowsertest() {
166 } 166 }
167 167
168 void LoginScreenDefaultPolicyLoginScreenBrowsertest::SetUpCommandLine( 168 void LoginScreenDefaultPolicyLoginScreenBrowsertest::SetUpCommandLine(
169 CommandLine* command_line) { 169 base::CommandLine* command_line) {
170 LoginScreenDefaultPolicyBrowsertestBase::SetUpCommandLine(command_line); 170 LoginScreenDefaultPolicyBrowsertestBase::SetUpCommandLine(command_line);
171 command_line->AppendSwitch(chromeos::switches::kLoginManager); 171 command_line->AppendSwitch(chromeos::switches::kLoginManager);
172 command_line->AppendSwitch(chromeos::switches::kForceLoginManagerInTests); 172 command_line->AppendSwitch(chromeos::switches::kForceLoginManagerInTests);
173 } 173 }
174 174
175 void LoginScreenDefaultPolicyLoginScreenBrowsertest::SetUpOnMainThread() { 175 void LoginScreenDefaultPolicyLoginScreenBrowsertest::SetUpOnMainThread() {
176 LoginScreenDefaultPolicyBrowsertestBase::SetUpOnMainThread(); 176 LoginScreenDefaultPolicyBrowsertestBase::SetUpOnMainThread();
177 177
178 // Set the login screen profile. 178 // Set the login screen profile.
179 chromeos::AccessibilityManager* accessibility_manager = 179 chromeos::AccessibilityManager* accessibility_manager =
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 base::FundamentalValue(true)); 457 base::FundamentalValue(true));
458 458
459 // Verify that the on-screen keyboard is enabled. 459 // Verify that the on-screen keyboard is enabled.
460 chromeos::AccessibilityManager* accessibility_manager = 460 chromeos::AccessibilityManager* accessibility_manager =
461 chromeos::AccessibilityManager::Get(); 461 chromeos::AccessibilityManager::Get();
462 ASSERT_TRUE(accessibility_manager); 462 ASSERT_TRUE(accessibility_manager);
463 EXPECT_TRUE(accessibility_manager->IsVirtualKeyboardEnabled()); 463 EXPECT_TRUE(accessibility_manager->IsVirtualKeyboardEnabled());
464 } 464 }
465 465
466 } // namespace policy 466 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698