| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 "chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h
" | 5 #include "chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h
" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/prefs/pref_value_map.h" | 8 #include "base/prefs/pref_value_map.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/policy/external_data_fetcher.h" | |
| 11 #include "chrome/browser/policy/policy_error_map.h" | 10 #include "chrome/browser/policy/policy_error_map.h" |
| 12 #include "chrome/browser/policy/policy_map.h" | |
| 13 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" | 11 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" |
| 14 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
| 13 #include "components/policy/core/common/external_data_fetcher.h" |
| 14 #include "components/policy/core/common/policy_map.h" |
| 15 #include "policy/policy_constants.h" | 15 #include "policy/policy_constants.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 17 |
| 18 namespace policy { | 18 namespace policy { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 // Test cases for the screen magnifier type policy setting. | 22 // Test cases for the screen magnifier type policy setting. |
| 23 class ScreenMagnifierPolicyHandlerTest : public testing::Test { | 23 class ScreenMagnifierPolicyHandlerTest : public testing::Test { |
| 24 protected: | 24 protected: |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 Value::CreateStringValue(policy), | 265 Value::CreateStringValue(policy), |
| 266 NULL); | 266 NULL); |
| 267 LoginScreenPowerManagementPolicyHandler handler; | 267 LoginScreenPowerManagementPolicyHandler handler; |
| 268 PolicyErrorMap errors; | 268 PolicyErrorMap errors; |
| 269 EXPECT_FALSE(handler.CheckPolicySettings(policy_map, &errors)); | 269 EXPECT_FALSE(handler.CheckPolicySettings(policy_map, &errors)); |
| 270 EXPECT_FALSE( | 270 EXPECT_FALSE( |
| 271 errors.GetErrors(key::kDeviceLoginScreenPowerManagement).empty()); | 271 errors.GetErrors(key::kDeviceLoginScreenPowerManagement).empty()); |
| 272 } | 272 } |
| 273 | 273 |
| 274 } // namespace policy | 274 } // namespace policy |
| OLD | NEW |