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