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

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

Issue 16254003: WIP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 "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
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
OLDNEW
« no previous file with comments | « chrome/browser/policy/managed_mode_policy_provider.cc ('k') | chrome/browser/policy/mock_configuration_policy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698