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

Unified Diff: chrome/browser/policy/configuration_policy_provider_test.h

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/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 8b1cd66f8332e0c8c22f9c2745cbf12c7dbcd72b..637a5285d363d1d77b475a0dede099326c203377 100644
--- a/chrome/browser/policy/configuration_policy_provider_test.h
+++ b/chrome/browser/policy/configuration_policy_provider_test.h
@@ -13,6 +13,8 @@
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "chrome/browser/policy/policy_types.h"
+#include "chrome/browser/policy/schema_registry.h"
+#include "components/policy/core/common/schema.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
@@ -49,9 +51,13 @@ class PolicyTestBase : public testing::Test {
virtual ~PolicyTestBase();
// testing::Test:
+ virtual void SetUp() OVERRIDE;
virtual void TearDown() OVERRIDE;
protected:
+ Schema chrome_schema_;
+ SchemaRegistry schema_registry_;
+
// Create an actual IO loop (needed by FilePathWatcher).
base::MessageLoopForIO loop_;
@@ -74,6 +80,7 @@ class PolicyProviderTestHarness {
// Create a new policy provider.
virtual ConfigurationPolicyProvider* CreateProvider(
+ SchemaRegistry* registry,
scoped_refptr<base::SequencedTaskRunner> task_runner,
const PolicyDefinitionList* policy_definition_list) = 0;
« no previous file with comments | « chrome/browser/policy/configuration_policy_provider.cc ('k') | chrome/browser/policy/configuration_policy_provider_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698