Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: components/policy/core/browser/configuration_policy_pref_store_test.h

Issue 197013007: Set drive as the default download folder (Closed) Base URL:
Patch Set: Fixes test failure and enables a new test Created 6 years, 9 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: components/policy/core/browser/configuration_policy_pref_store_test.h
diff --git a/components/policy/core/browser/configuration_policy_pref_store_test.h b/components/policy/core/browser/configuration_policy_pref_store_test.h
index 40c8381444c318251eb6beecc01c12810ad2a7c0..d22d2c2c6c4711da76c544a3dff305d14eea6b8b 100644
--- a/components/policy/core/browser/configuration_policy_pref_store_test.h
+++ b/components/policy/core/browser/configuration_policy_pref_store_test.h
@@ -16,6 +16,7 @@
namespace policy {
+struct PolicyHandlerParameters;
class PolicyMap;
class PolicyService;
class ConfigurationPolicyPrefStore;
@@ -27,6 +28,11 @@ class ConfigurationPolicyPrefStoreTest : public testing::Test {
virtual void TearDown() OVERRIDE;
void UpdateProviderPolicy(const PolicyMap& policy);
+ // A unit test can override this method to populate the policy handler
+ // parameters as suited to its needs.
+ virtual void PopulatePolicyHandlerParameters(
+ PolicyHandlerParameters* parameters);
PolicyServiceImpl::Providers providers_;
ConfigurationPolicyHandlerList handler_list_;
MockConfigurationPolicyProvider provider_;

Powered by Google App Engine
This is Rietveld 408576698