| 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" |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 ValueTestParams::ForStringPolicy( | 356 ValueTestParams::ForStringPolicy( |
| 357 kPolicyDiskCacheDir, | 357 kPolicyDiskCacheDir, |
| 358 key::kDiskCacheDir), | 358 key::kDiskCacheDir), |
| 359 ValueTestParams::ForListPolicy( | 359 ValueTestParams::ForListPolicy( |
| 360 kPolicyURLBlacklist, | 360 kPolicyURLBlacklist, |
| 361 key::kURLBlacklist), | 361 key::kURLBlacklist), |
| 362 ValueTestParams::ForListPolicy( | 362 ValueTestParams::ForListPolicy( |
| 363 kPolicyURLWhitelist, | 363 kPolicyURLWhitelist, |
| 364 key::kURLWhitelist))); | 364 key::kURLWhitelist))); |
| 365 | 365 |
| 366 // Adds additional cases that can't be included in |
| 367 // ConfigDirPolicyProviderValueTestInstance since testing::Values is limited |
| 368 // to 50 entries. |
| 369 INSTANTIATE_TEST_CASE_P( |
| 370 ConfigDirPolicyProviderValueTestInstanceContinued, |
| 371 ConfigDirPolicyProviderValueTest, |
| 372 testing::Values( |
| 373 ValueTestParams::ForBooleanPolicy( |
| 374 kPolicyCloudPrintSubmitEnabled, |
| 375 key::kCloudPrintSubmitEnabled))); |
| 376 |
| 366 // Test parameters for all policies that are supported on ChromeOS only. | 377 // Test parameters for all policies that are supported on ChromeOS only. |
| 367 #if defined(OS_CHROMEOS) | 378 #if defined(OS_CHROMEOS) |
| 368 INSTANTIATE_TEST_CASE_P( | 379 INSTANTIATE_TEST_CASE_P( |
| 369 ConfigDirPolicyProviderValueTestChromeOSInstance, | 380 ConfigDirPolicyProviderValueTestChromeOSInstance, |
| 370 ConfigDirPolicyProviderValueTest, | 381 ConfigDirPolicyProviderValueTest, |
| 371 testing::Values( | 382 testing::Values( |
| 372 ValueTestParams::ForIntegerPolicy( | 383 ValueTestParams::ForIntegerPolicy( |
| 373 kPolicyPolicyRefreshRate, | 384 kPolicyPolicyRefreshRate, |
| 374 key::kPolicyRefreshRate))); | 385 key::kPolicyRefreshRate))); |
| 375 #endif | 386 #endif |
| 376 | 387 |
| 377 } // namespace policy | 388 } // namespace policy |
| OLD | NEW |