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

Side by Side Diff: chrome/browser/policy/configuration_policy_pref_store_unittest.h

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 years 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
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_UNITTEST_H_
6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_UNITTEST_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop/message_loop.h"
11 #include "chrome/browser/policy/configuration_policy_handler_list.h"
12 #include "chrome/browser/policy/policy_service_impl.h"
13 #include "components/policy/core/common/mock_configuration_policy_provider.h"
14 #include "testing/gtest/include/gtest/gtest.h"
15
16 namespace policy {
17
18 class PolicyMap;
19 class PolicyService;
20 class ConfigurationPolicyPrefStore;
21
22 class ConfigurationPolicyPrefStoreTest : public testing::Test {
23 protected:
24 ConfigurationPolicyPrefStoreTest();
25 virtual ~ConfigurationPolicyPrefStoreTest();
26 virtual void TearDown() OVERRIDE;
27 void UpdateProviderPolicy(const PolicyMap& policy);
28
29 PolicyServiceImpl::Providers providers_;
30 ConfigurationPolicyHandlerList handler_list_;
31 MockConfigurationPolicyProvider provider_;
32 scoped_ptr<PolicyService> policy_service_;
33 scoped_refptr<ConfigurationPolicyPrefStore> store_;
34 base::MessageLoop loop_;
35
36 private:
37 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyPrefStoreTest);
38 };
39
40 } // namespace policy
41
42 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_UNITTEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698