Chromium Code Reviews| 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..7bf31dc2074a6bd36df6bf266c8416592168f1fc 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. |
| + virtual PolicyLevel GetPolicyLevel() const; |
|
Mattias Nissler (ping if slow)
2012/05/15 17:07:24
no need to make these virtual any longer, and the
Joao da Silva
2012/05/16 10:25:44
Done.
|
| + virtual PolicyScope GetPolicyScope() 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); |
| }; |