| 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 "ash/magnifier/magnifier_constants.h" | 7 #include "ash/magnifier/magnifier_constants.h" |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 } // namespace | 79 } // namespace |
| 80 | 80 |
| 81 class LoginScreenDefaultPolicyBrowsertestBase | 81 class LoginScreenDefaultPolicyBrowsertestBase |
| 82 : public DevicePolicyCrosBrowserTest { | 82 : public DevicePolicyCrosBrowserTest { |
| 83 protected: | 83 protected: |
| 84 LoginScreenDefaultPolicyBrowsertestBase(); | 84 LoginScreenDefaultPolicyBrowsertestBase(); |
| 85 virtual ~LoginScreenDefaultPolicyBrowsertestBase(); | 85 virtual ~LoginScreenDefaultPolicyBrowsertestBase(); |
| 86 | 86 |
| 87 // DevicePolicyCrosBrowserTest: | 87 // DevicePolicyCrosBrowserTest: |
| 88 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE; | 88 virtual void SetUpInProcessBrowserTestFixture() override; |
| 89 virtual void SetUpOnMainThread() OVERRIDE; | 89 virtual void SetUpOnMainThread() override; |
| 90 | 90 |
| 91 void RefreshDevicePolicyAndWaitForPrefChange(const char* pref_name); | 91 void RefreshDevicePolicyAndWaitForPrefChange(const char* pref_name); |
| 92 | 92 |
| 93 Profile* login_profile_; | 93 Profile* login_profile_; |
| 94 | 94 |
| 95 private: | 95 private: |
| 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(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 |
| 117 class LoginScreenDefaultPolicyInSessionBrowsertest | 117 class LoginScreenDefaultPolicyInSessionBrowsertest |
| 118 : public LoginScreenDefaultPolicyBrowsertestBase { | 118 : public LoginScreenDefaultPolicyBrowsertestBase { |
| 119 protected: | 119 protected: |
| 120 LoginScreenDefaultPolicyInSessionBrowsertest(); | 120 LoginScreenDefaultPolicyInSessionBrowsertest(); |
| 121 virtual ~LoginScreenDefaultPolicyInSessionBrowsertest(); | 121 virtual ~LoginScreenDefaultPolicyInSessionBrowsertest(); |
| 122 | 122 |
| 123 // LoginScreenDefaultPolicyBrowsertestBase: | 123 // LoginScreenDefaultPolicyBrowsertestBase: |
| 124 virtual void SetUpOnMainThread() OVERRIDE; | 124 virtual void SetUpOnMainThread() override; |
| 125 | 125 |
| 126 void VerifyPrefFollowsDefault(const char* pref_name); | 126 void VerifyPrefFollowsDefault(const char* pref_name); |
| 127 | 127 |
| 128 private: | 128 private: |
| 129 DISALLOW_COPY_AND_ASSIGN(LoginScreenDefaultPolicyInSessionBrowsertest); | 129 DISALLOW_COPY_AND_ASSIGN(LoginScreenDefaultPolicyInSessionBrowsertest); |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 LoginScreenDefaultPolicyBrowsertestBase:: | 132 LoginScreenDefaultPolicyBrowsertestBase:: |
| 133 LoginScreenDefaultPolicyBrowsertestBase() : login_profile_(NULL) { | 133 LoginScreenDefaultPolicyBrowsertestBase() : login_profile_(NULL) { |
| 134 } | 134 } |
| (...skipping 322 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 |