| 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/json/json_reader.h" | 8 #include "base/json/json_reader.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/prefs/pref_value_map.h" | |
| 12 #include "base/values.h" | 11 #include "base/values.h" |
| 13 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" | 12 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" |
| 14 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
| 15 #include "components/policy/core/browser/policy_error_map.h" | 14 #include "components/policy/core/browser/policy_error_map.h" |
| 16 #include "components/policy/core/common/external_data_fetcher.h" | 15 #include "components/policy/core/common/external_data_fetcher.h" |
| 17 #include "components/policy/core/common/policy_map.h" | 16 #include "components/policy/core/common/policy_map.h" |
| 18 #include "components/policy/core/common/policy_types.h" | 17 #include "components/policy/core/common/policy_types.h" |
| 19 #include "components/policy/core/common/schema.h" | 18 #include "components/policy/core/common/schema.h" |
| 19 #include "components/prefs/pref_value_map.h" |
| 20 #include "policy/policy_constants.h" | 20 #include "policy/policy_constants.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
| 22 | 22 |
| 23 namespace policy { | 23 namespace policy { |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 // Test cases for the screen magnifier type policy setting. | 27 // Test cases for the screen magnifier type policy setting. |
| 28 class ScreenMagnifierPolicyHandlerTest : public testing::Test { | 28 class ScreenMagnifierPolicyHandlerTest : public testing::Test { |
| 29 protected: | 29 protected: |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 new base::FundamentalValue(false), | 395 new base::FundamentalValue(false), |
| 396 NULL); | 396 NULL); |
| 397 LoginScreenPowerManagementPolicyHandler handler(chrome_schema_); | 397 LoginScreenPowerManagementPolicyHandler handler(chrome_schema_); |
| 398 PolicyErrorMap errors; | 398 PolicyErrorMap errors; |
| 399 EXPECT_FALSE(handler.CheckPolicySettings(policy_map, &errors)); | 399 EXPECT_FALSE(handler.CheckPolicySettings(policy_map, &errors)); |
| 400 EXPECT_FALSE( | 400 EXPECT_FALSE( |
| 401 errors.GetErrors(key::kDeviceLoginScreenPowerManagement).empty()); | 401 errors.GetErrors(key::kDeviceLoginScreenPowerManagement).empty()); |
| 402 } | 402 } |
| 403 | 403 |
| 404 } // namespace policy | 404 } // namespace policy |
| OLD | NEW |