Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / policy / configuration_policy_pref_store_test.h
blobef8c76414ba80491573810ddfc21b8c43727bc16
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.
5 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_TEST_H_
6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_TEST_H_
8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "base/message_loop/message_loop.h"
12 #include "components/policy/core/browser/configuration_policy_handler_list.h"
13 #include "components/policy/core/common/mock_configuration_policy_provider.h"
14 #include "components/policy/core/common/policy_service_impl.h"
15 #include "testing/gtest/include/gtest/gtest.h"
17 namespace policy {
19 class PolicyMap;
20 class PolicyService;
21 class ConfigurationPolicyPrefStore;
23 class ConfigurationPolicyPrefStoreTest : public testing::Test {
24 protected:
25 ConfigurationPolicyPrefStoreTest();
26 virtual ~ConfigurationPolicyPrefStoreTest();
27 virtual void TearDown() OVERRIDE;
28 void UpdateProviderPolicy(const PolicyMap& policy);
30 PolicyServiceImpl::Providers providers_;
31 ConfigurationPolicyHandlerList handler_list_;
32 MockConfigurationPolicyProvider provider_;
33 scoped_ptr<PolicyService> policy_service_;
34 scoped_refptr<ConfigurationPolicyPrefStore> store_;
35 base::MessageLoop loop_;
37 private:
38 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyPrefStoreTest);
41 } // namespace policy
43 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PREF_STORE_TEST_H_