OLD | NEW |
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 Loading... |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |