| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <gtest/gtest.h> | 5 #include <gtest/gtest.h> |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 | 8 |
| 9 #include "base/registry.h" | |
| 10 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 11 #include "base/stl_util-inl.h" | 10 #include "base/stl_util-inl.h" |
| 12 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
| 13 #include "base/string_piece.h" | 12 #include "base/string_piece.h" |
| 14 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "base/win/registry.h" |
| 15 #include "chrome/browser/policy/configuration_policy_pref_store.h" | 15 #include "chrome/browser/policy/configuration_policy_pref_store.h" |
| 16 #include "chrome/browser/policy/configuration_policy_provider_win.h" | 16 #include "chrome/browser/policy/configuration_policy_provider_win.h" |
| 17 #include "chrome/browser/policy/mock_configuration_policy_store.h" | 17 #include "chrome/browser/policy/mock_configuration_policy_store.h" |
| 18 #include "chrome/common/policy_constants.h" | 18 #include "chrome/common/policy_constants.h" |
| 19 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
| 20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" |
| 21 | 21 |
| 22 using base::win::RegKey; |
| 23 |
| 22 namespace policy { | 24 namespace policy { |
| 23 | 25 |
| 24 const wchar_t kUnitTestRegistrySubKey[] = L"SOFTWARE\\Chromium Unit Tests"; | 26 const wchar_t kUnitTestRegistrySubKey[] = L"SOFTWARE\\Chromium Unit Tests"; |
| 25 const wchar_t kUnitTestMachineOverrideSubKey[] = | 27 const wchar_t kUnitTestMachineOverrideSubKey[] = |
| 26 L"SOFTWARE\\Chromium Unit Tests\\HKLM Override"; | 28 L"SOFTWARE\\Chromium Unit Tests\\HKLM Override"; |
| 27 const wchar_t kUnitTestUserOverrideSubKey[] = | 29 const wchar_t kUnitTestUserOverrideSubKey[] = |
| 28 L"SOFTWARE\\Chromium Unit Tests\\HKCU Override"; | 30 L"SOFTWARE\\Chromium Unit Tests\\HKCU Override"; |
| 29 | 31 |
| 30 // Holds policy type, corresponding policy name string and a valid value for use | 32 // Holds policy type, corresponding policy name string and a valid value for use |
| 31 // in parametrized value tests. | 33 // in parametrized value tests. |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 ConfigurationPolicyStore::kPolicyExtensionInstallDenyList, | 420 ConfigurationPolicyStore::kPolicyExtensionInstallDenyList, |
| 419 key::kExtensionInstallDenyList), | 421 key::kExtensionInstallDenyList), |
| 420 PolicyTestParams::ForBooleanPolicy( | 422 PolicyTestParams::ForBooleanPolicy( |
| 421 ConfigurationPolicyStore::kPolicyShowHomeButton, | 423 ConfigurationPolicyStore::kPolicyShowHomeButton, |
| 422 key::kShowHomeButton), | 424 key::kShowHomeButton), |
| 423 PolicyTestParams::ForBooleanPolicy( | 425 PolicyTestParams::ForBooleanPolicy( |
| 424 ConfigurationPolicyStore::kPolicyPrintingEnabled, | 426 ConfigurationPolicyStore::kPolicyPrintingEnabled, |
| 425 key::kPrintingEnabled))); | 427 key::kPrintingEnabled))); |
| 426 | 428 |
| 427 } // namespace policy | 429 } // namespace policy |
| OLD | NEW |