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 <gtest/gtest.h> | 5 #include <gtest/gtest.h> |
6 | 6 |
7 #include "base/mac/scoped_cftyperef.h" | 7 #include "base/mac/scoped_cftyperef.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
9 #include "base/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
10 #include "chrome/browser/policy/configuration_policy_pref_store.h" | 10 #include "chrome/browser/policy/configuration_policy_pref_store.h" |
11 #include "chrome/browser/policy/configuration_policy_provider_mac.h" | 11 #include "chrome/browser/policy/configuration_policy_provider_mac.h" |
| 12 #include "chrome/browser/policy/policy_map.h" |
12 #include "chrome/browser/preferences_mock_mac.h" | 13 #include "chrome/browser/preferences_mock_mac.h" |
13 #include "policy/policy_constants.h" | 14 #include "policy/policy_constants.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 | 16 |
16 namespace policy { | 17 namespace policy { |
17 | 18 |
18 // Holds parameters for the parametrized policy tests. | 19 // Holds parameters for the parametrized policy tests. |
19 class PolicyTestParams { | 20 class PolicyTestParams { |
20 public: | 21 public: |
21 // Takes ownership of |test_value|. | 22 // Takes ownership of |test_value|. |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 ConfigurationPolicyProviderMacTest, | 359 ConfigurationPolicyProviderMacTest, |
359 testing::Values( | 360 testing::Values( |
360 PolicyTestParams::ForListPolicy( | 361 PolicyTestParams::ForListPolicy( |
361 kPolicyURLBlacklist, | 362 kPolicyURLBlacklist, |
362 key::kURLBlacklist), | 363 key::kURLBlacklist), |
363 PolicyTestParams::ForListPolicy( | 364 PolicyTestParams::ForListPolicy( |
364 kPolicyURLWhitelist, | 365 kPolicyURLWhitelist, |
365 key::kURLWhitelist))); | 366 key::kURLWhitelist))); |
366 | 367 |
367 } // namespace policy | 368 } // namespace policy |
OLD | NEW |