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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/configuration_policy_provider_test.h
diff --git a/chrome/browser/policy/configuration_policy_provider_test.h b/chrome/browser/policy/configuration_policy_provider_test.h
index b77c11e0bc40984552bbbdf9bc1c618183337e9d..778203698ee4b5a74091c09f1f63ce6298f80bde 100644
--- a/chrome/browser/policy/configuration_policy_provider_test.h
+++ b/chrome/browser/policy/configuration_policy_provider_test.h
@@ -48,7 +48,9 @@ extern const PolicyDefinitionList kList;
// ConfigurationPolicyProviderTest below.
class PolicyProviderTestHarness {
public:
- PolicyProviderTestHarness();
+ // |level| and |scope| are the level and scope of the policies returned by
+ // the providers from CreateProvider().
+ PolicyProviderTestHarness(PolicyLevel level, PolicyScope scope);
virtual ~PolicyProviderTestHarness();
// Actions to run at gtest SetUp() time.
@@ -58,6 +60,10 @@ class PolicyProviderTestHarness {
virtual AsynchronousPolicyProvider* CreateProvider(
const PolicyDefinitionList* policy_definition_list) = 0;
+ // Returns the policy level and scope set by the policy provider.
+ PolicyLevel policy_level() const;
+ PolicyScope policy_scope() const;
+
// Helpers to configure the environment the policy provider reads from.
virtual void InstallEmptyPolicy() = 0;
virtual void InstallStringPolicy(const std::string& policy_name,
@@ -73,6 +79,9 @@ class PolicyProviderTestHarness {
const base::DictionaryValue* policy_value) = 0;
private:
+ PolicyLevel level_;
+ PolicyScope scope_;
+
DISALLOW_COPY_AND_ASSIGN(PolicyProviderTestHarness);
};

Powered by Google App Engine
This is Rietveld 408576698