Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Side by Side Diff: chrome/browser/policy/managed_mode_policy_provider_unittest.cc

Issue 11243002: Move the bits of Prefs where production code has only trivially easy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, fix gypi problem Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/policy/managed_mode_policy_provider.cc ('k') | chrome/browser/policy/url_blacklist_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698