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

Unified Diff: chrome/browser/chromeos/policy/proxy_policy_provider_unittest.cc

Issue 56623005: Policy providers all get a SchemaRegistry to work with. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-policy-schema-9-purge-with-callback
Patch Set: rebase Created 7 years, 1 month 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/chromeos/policy/proxy_policy_provider_unittest.cc
diff --git a/chrome/browser/chromeos/policy/proxy_policy_provider_unittest.cc b/chrome/browser/chromeos/policy/proxy_policy_provider_unittest.cc
index 922c547f351b568c9a0b02ac0fafc4e42d90fbbd..5008111925e5965a5b620e90e16d07bf6d8fe017 100644
--- a/chrome/browser/chromeos/policy/proxy_policy_provider_unittest.cc
+++ b/chrome/browser/chromeos/policy/proxy_policy_provider_unittest.cc
@@ -7,6 +7,7 @@
#include "chrome/browser/chromeos/policy/proxy_policy_provider.h"
#include "chrome/browser/policy/external_data_fetcher.h"
#include "chrome/browser/policy/mock_configuration_policy_provider.h"
+#include "chrome/browser/policy/schema_registry.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -18,7 +19,7 @@ class ProxyPolicyProviderTest : public testing::Test {
protected:
ProxyPolicyProviderTest() {
mock_provider_.Init();
- proxy_provider_.Init();
+ proxy_provider_.Init(&schema_registry_);
proxy_provider_.AddObserver(&observer_);
}
@@ -28,6 +29,7 @@ class ProxyPolicyProviderTest : public testing::Test {
mock_provider_.Shutdown();
}
+ SchemaRegistry schema_registry_;
MockConfigurationPolicyObserver observer_;
MockConfigurationPolicyProvider mock_provider_;
ProxyPolicyProvider proxy_provider_;

Powered by Google App Engine
This is Rietveld 408576698