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

Unified Diff: chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc

Issue 79023002: Support cloud policy for extensions on the desktop platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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/cloud/user_policy_signin_service_unittest.cc
diff --git a/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc b/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc
index 078161bc3f1cf616f9dc85f5c2d4f7a386ec84ed..bdd1ad85517f7f3b164929a003a30e910a3d62af 100644
--- a/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc
+++ b/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/files/file_path.h"
#include "base/message_loop/message_loop.h"
#include "base/message_loop/message_loop_proxy.h"
#include "base/prefs/pref_service.h"
@@ -26,6 +27,7 @@
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_pref_service_syncable.h"
#include "chrome/test/base/testing_profile.h"
+#include "components/policy/core/common/schema_registry.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_service.h"
@@ -163,8 +165,12 @@ class UserPolicySigninServiceTest : public testing::Test {
manager_.reset(new UserCloudPolicyManager(
profile_.get(),
scoped_ptr<UserCloudPolicyStore>(mock_store_),
+ base::FilePath(),
scoped_ptr<CloudExternalDataManager>(),
+ base::MessageLoopProxy::current(),
+ base::MessageLoopProxy::current(),
base::MessageLoopProxy::current()));
+ manager_->Init(&schema_registry_);
AddProfile();
@@ -320,6 +326,7 @@ class UserPolicySigninServiceTest : public testing::Test {
scoped_ptr<TestingProfile> profile_;
MockUserCloudPolicyStore* mock_store_; // Not owned.
+ SchemaRegistry schema_registry_;
scoped_ptr<UserCloudPolicyManager> manager_;
// BrowserPolicyConnector and UrlFetcherFactory want to initialize and free
« no previous file with comments | « chrome/browser/policy/cloud/user_cloud_policy_manager_unittest.cc ('k') | chrome/browser/policy/test/policy_testserver.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698