OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/prefs/testing_pref_store.h" | 5 #include "base/prefs/testing_pref_store.h" |
6 #include "chrome/browser/policy/configuration_policy_provider_test.h" | 6 #include "chrome/browser/policy/configuration_policy_provider_test.h" |
7 #include "chrome/browser/policy/managed_mode_policy_provider.h" | 7 #include "chrome/browser/policy/managed_mode_policy_provider.h" |
8 #include "chrome/browser/policy/policy_bundle.h" | 8 #include "chrome/browser/policy/policy_bundle.h" |
9 #include "chrome/browser/policy/policy_map.h" | 9 #include "chrome/browser/policy/policy_map.h" |
| 10 #include "chrome/browser/policy/policy_namespace.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
11 | 12 |
12 namespace policy { | 13 namespace policy { |
13 | 14 |
14 namespace { | 15 namespace { |
15 | 16 |
16 class TestHarness : public PolicyProviderTestHarness { | 17 class TestHarness : public PolicyProviderTestHarness { |
17 public: | 18 public: |
18 TestHarness(); | 19 TestHarness(); |
19 virtual ~TestHarness(); | 20 virtual ~TestHarness(); |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // A newly-created provider should have the same policies. | 171 // A newly-created provider should have the same policies. |
171 ManagedModePolicyProvider new_provider(pref_store_); | 172 ManagedModePolicyProvider new_provider(pref_store_); |
172 new_provider.Init(); | 173 new_provider.Init(); |
173 EXPECT_TRUE(new_provider.policies().Equals(expected_bundle)); | 174 EXPECT_TRUE(new_provider.policies().Equals(expected_bundle)); |
174 | 175 |
175 // Cleanup. | 176 // Cleanup. |
176 new_provider.Shutdown(); | 177 new_provider.Shutdown(); |
177 } | 178 } |
178 | 179 |
179 } // namespace policy | 180 } // namespace policy |
OLD | NEW |