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

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

Issue 10384145: Removed ConfigurationPolicyProvider::Provide(). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased Created 8 years, 7 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
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 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_TEST_H_ 5 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_TEST_H_
6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_TEST_H_ 6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_TEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 PolicyProviderTestHarness(); 51 PolicyProviderTestHarness();
52 virtual ~PolicyProviderTestHarness(); 52 virtual ~PolicyProviderTestHarness();
53 53
54 // Actions to run at gtest SetUp() time. 54 // Actions to run at gtest SetUp() time.
55 virtual void SetUp() = 0; 55 virtual void SetUp() = 0;
56 56
57 // Create a new policy provider. 57 // Create a new policy provider.
58 virtual AsynchronousPolicyProvider* CreateProvider( 58 virtual AsynchronousPolicyProvider* CreateProvider(
59 const PolicyDefinitionList* policy_definition_list) = 0; 59 const PolicyDefinitionList* policy_definition_list) = 0;
60 60
61 // Returns the policy level and scope set by the policy provider.
62 virtual PolicyLevel GetPolicyLevel() const = 0;
63 virtual PolicyScope GetPolicyScope() const = 0;
Mattias Nissler (ping if slow) 2012/05/14 16:55:59 Minor style nit you may choose to ignore: Might as
Joao da Silva 2012/05/15 13:07:05 Done.
64
61 // Helpers to configure the environment the policy provider reads from. 65 // Helpers to configure the environment the policy provider reads from.
62 virtual void InstallEmptyPolicy() = 0; 66 virtual void InstallEmptyPolicy() = 0;
63 virtual void InstallStringPolicy(const std::string& policy_name, 67 virtual void InstallStringPolicy(const std::string& policy_name,
64 const std::string& policy_value) = 0; 68 const std::string& policy_value) = 0;
65 virtual void InstallIntegerPolicy(const std::string& policy_name, 69 virtual void InstallIntegerPolicy(const std::string& policy_name,
66 int policy_value) = 0; 70 int policy_value) = 0;
67 virtual void InstallBooleanPolicy(const std::string& policy_name, 71 virtual void InstallBooleanPolicy(const std::string& policy_name,
68 bool policy_value) = 0; 72 bool policy_value) = 0;
69 virtual void InstallStringListPolicy(const std::string& policy_name, 73 virtual void InstallStringListPolicy(const std::string& policy_name,
70 const base::ListValue* policy_value) = 0; 74 const base::ListValue* policy_value) = 0;
(...skipping 30 matching lines...) Expand all
101 scoped_ptr<PolicyProviderTestHarness> test_harness_; 105 scoped_ptr<PolicyProviderTestHarness> test_harness_;
102 scoped_ptr<AsynchronousPolicyProvider> provider_; 106 scoped_ptr<AsynchronousPolicyProvider> provider_;
103 107
104 private: 108 private:
105 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyProviderTest); 109 DISALLOW_COPY_AND_ASSIGN(ConfigurationPolicyProviderTest);
106 }; 110 };
107 111
108 } // namespace policy 112 } // namespace policy
109 113
110 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_TEST_H_ 114 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698