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

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: fixed stub, again 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..fffd29444b9a7b9bf6376437a27cf8ef04fbef8b 100644
--- a/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc
+++ b/chrome/browser/policy/cloud/user_policy_signin_service_unittest.cc
@@ -26,6 +26,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 +164,12 @@ class UserPolicySigninServiceTest : public testing::Test {
manager_.reset(new UserCloudPolicyManager(
profile_.get(),
scoped_ptr<UserCloudPolicyStore>(mock_store_),
+ base::FilePath(),
bartfab (slow) 2013/11/25 15:05:50 Nit: #include "base/files/file_path.h"
Joao da Silva 2013/11/25 16:44:11 Done.
scoped_ptr<CloudExternalDataManager>(),
+ base::MessageLoopProxy::current(),
+ base::MessageLoopProxy::current(),
base::MessageLoopProxy::current()));
+ manager_->Init(&schema_registry_);
AddProfile();
@@ -320,6 +325,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

Powered by Google App Engine
This is Rietveld 408576698