| 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 <algorithm> | 5 #include <algorithm> |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/json/json_value_serializer.h" | 8 #include "base/json/json_value_serializer.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "base/scoped_temp_dir.h" | 10 #include "base/scoped_temp_dir.h" |
| 11 #include "base/string_number_conversions.h" | 11 #include "base/string_number_conversions.h" |
| 12 #include "chrome/browser/policy/config_dir_policy_provider.h" | 12 #include "chrome/browser/policy/config_dir_policy_provider.h" |
| 13 #include "chrome/browser/policy/configuration_policy_pref_store.h" | 13 #include "chrome/browser/policy/configuration_policy_pref_store.h" |
| 14 #include "chrome/browser/policy/policy_map.h" | 14 #include "chrome/browser/policy/policy_map.h" |
| 15 #include "content/test/test_browser_thread.h" | 15 #include "content/test/test_browser_thread.h" |
| 16 #include "policy/policy_constants.h" | 16 #include "policy/policy_constants.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 18 |
| 19 using content::BrowserThread; |
| 20 |
| 19 namespace policy { | 21 namespace policy { |
| 20 | 22 |
| 21 template<typename BASE> | 23 template<typename BASE> |
| 22 class ConfigDirPolicyProviderTestBase : public BASE { | 24 class ConfigDirPolicyProviderTestBase : public BASE { |
| 23 protected: | 25 protected: |
| 24 ConfigDirPolicyProviderTestBase() {} | 26 ConfigDirPolicyProviderTestBase() {} |
| 25 | 27 |
| 26 virtual void SetUp() { | 28 virtual void SetUp() { |
| 27 ASSERT_TRUE(test_dir_.CreateUniqueTempDir()); | 29 ASSERT_TRUE(test_dir_.CreateUniqueTempDir()); |
| 28 } | 30 } |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 INSTANTIATE_TEST_CASE_P( | 370 INSTANTIATE_TEST_CASE_P( |
| 369 ConfigDirPolicyProviderValueTestChromeOSInstance, | 371 ConfigDirPolicyProviderValueTestChromeOSInstance, |
| 370 ConfigDirPolicyProviderValueTest, | 372 ConfigDirPolicyProviderValueTest, |
| 371 testing::Values( | 373 testing::Values( |
| 372 ValueTestParams::ForIntegerPolicy( | 374 ValueTestParams::ForIntegerPolicy( |
| 373 kPolicyPolicyRefreshRate, | 375 kPolicyPolicyRefreshRate, |
| 374 key::kPolicyRefreshRate))); | 376 key::kPolicyRefreshRate))); |
| 375 #endif | 377 #endif |
| 376 | 378 |
| 377 } // namespace policy | 379 } // namespace policy |
| OLD | NEW |