| 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);
|
| };
|
|
|
|
|