| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/file_path.h" | 5 #include "base/file_path.h" |
| 6 #include "base/memory/ref_counted.h" | 6 #include "base/memory/ref_counted.h" |
| 7 #include "chrome/browser/policy/configuration_policy_pref_store.h" | 7 #include "chrome/browser/policy/configuration_policy_pref_store.h" |
| 8 #include "chrome/browser/policy/mock_configuration_policy_provider.h" | 8 #include "chrome/browser/policy/mock_configuration_policy_provider.h" |
| 9 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 9 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
| 10 #include "chrome/browser/prefs/proxy_config_dictionary.h" | 10 #include "chrome/browser/prefs/proxy_config_dictionary.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 prefs::kApplicationLocale), | 124 prefs::kApplicationLocale), |
| 125 TypeAndName(kPolicyAuthSchemes, | 125 TypeAndName(kPolicyAuthSchemes, |
| 126 prefs::kAuthSchemes), | 126 prefs::kAuthSchemes), |
| 127 TypeAndName(kPolicyAuthServerWhitelist, | 127 TypeAndName(kPolicyAuthServerWhitelist, |
| 128 prefs::kAuthServerWhitelist), | 128 prefs::kAuthServerWhitelist), |
| 129 TypeAndName(kPolicyAuthNegotiateDelegateWhitelist, | 129 TypeAndName(kPolicyAuthNegotiateDelegateWhitelist, |
| 130 prefs::kAuthNegotiateDelegateWhitelist), | 130 prefs::kAuthNegotiateDelegateWhitelist), |
| 131 TypeAndName(kPolicyGSSAPILibraryName, | 131 TypeAndName(kPolicyGSSAPILibraryName, |
| 132 prefs::kGSSAPILibraryName), | 132 prefs::kGSSAPILibraryName), |
| 133 TypeAndName(kPolicyDiskCacheDir, | 133 TypeAndName(kPolicyDiskCacheDir, |
| 134 prefs::kDiskCacheDir))); | 134 prefs::kDiskCacheDir), |
| 135 TypeAndName(kPolicySpdyServers, |
| 136 prefs::kSpdyServers))); |
| 135 | 137 |
| 136 #if !defined(OS_CHROMEOS) | 138 #if !defined(OS_CHROMEOS) |
| 137 INSTANTIATE_TEST_CASE_P( | 139 INSTANTIATE_TEST_CASE_P( |
| 138 ConfigurationPolicyPrefStoreDownloadDirectoryInstance, | 140 ConfigurationPolicyPrefStoreDownloadDirectoryInstance, |
| 139 ConfigurationPolicyPrefStoreStringTest, | 141 ConfigurationPolicyPrefStoreStringTest, |
| 140 testing::Values(TypeAndName(kPolicyDownloadDirectory, | 142 testing::Values(TypeAndName(kPolicyDownloadDirectory, |
| 141 prefs::kDownloadDefaultDirectory))); | 143 prefs::kDownloadDefaultDirectory))); |
| 142 #endif // !defined(OS_CHROMEOS) | 144 #endif // !defined(OS_CHROMEOS) |
| 143 | 145 |
| 144 // Test cases for boolean-valued policy settings. | 146 // Test cases for boolean-valued policy settings. |
| (...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 974 | 976 |
| 975 provider_.SetInitializationComplete(true); | 977 provider_.SetInitializationComplete(true); |
| 976 EXPECT_FALSE(store_->IsInitializationComplete()); | 978 EXPECT_FALSE(store_->IsInitializationComplete()); |
| 977 | 979 |
| 978 store_->OnUpdatePolicy(); | 980 store_->OnUpdatePolicy(); |
| 979 Mock::VerifyAndClearExpectations(&observer_); | 981 Mock::VerifyAndClearExpectations(&observer_); |
| 980 EXPECT_TRUE(store_->IsInitializationComplete()); | 982 EXPECT_TRUE(store_->IsInitializationComplete()); |
| 981 } | 983 } |
| 982 | 984 |
| 983 } // namespace policy | 985 } // namespace policy |
| OLD | NEW |