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

Unified Diff: chrome/browser/managed_mode/managed_user_registration_utility_unittest.cc

Issue 147083016: Add avatar syncing for supervised users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync Created 6 years, 10 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: chrome/browser/managed_mode/managed_user_registration_utility_unittest.cc
diff --git a/chrome/browser/managed_mode/managed_user_registration_utility_unittest.cc b/chrome/browser/managed_mode/managed_user_registration_utility_unittest.cc
index b0917d999b89004684cbd91310d8d6200916fc9c..f61bb7db17807c57cfeb982f0004d6e3a7b52c9b 100644
--- a/chrome/browser/managed_mode/managed_user_registration_utility_unittest.cc
+++ b/chrome/browser/managed_mode/managed_user_registration_utility_unittest.cc
@@ -10,6 +10,8 @@
#include "base/threading/sequenced_worker_pool.h"
#include "chrome/browser/managed_mode/managed_user_refresh_token_fetcher.h"
#include "chrome/browser/managed_mode/managed_user_registration_utility.h"
+#include "chrome/browser/managed_mode/managed_user_shared_settings_service.h"
+#include "chrome/browser/managed_mode/managed_user_shared_settings_service_factory.h"
#include "chrome/browser/managed_mode/managed_user_sync_service.h"
#include "chrome/browser/managed_mode/managed_user_sync_service_factory.h"
#include "chrome/common/pref_names.h"
@@ -105,6 +107,9 @@ class ManagedUserRegistrationUtilityTest : public ::testing::Test {
PrefService* prefs() { return profile_.GetTestingPrefService(); }
ManagedUserSyncService* service() { return service_; }
+ ManagedUserSharedSettingsService* shared_settings_service() {
+ return shared_settings_service_;
+ }
MockChangeProcessor* change_processor() { return change_processor_; }
bool received_callback() const { return received_callback_; }
@@ -119,6 +124,7 @@ class ManagedUserRegistrationUtilityTest : public ::testing::Test {
base::RunLoop run_loop_;
TestingProfile profile_;
ManagedUserSyncService* service_;
+ ManagedUserSharedSettingsService* shared_settings_service_;
scoped_ptr<ManagedUserRegistrationUtility> registration_utility_;
// Owned by the ManagedUserSyncService.
@@ -144,6 +150,8 @@ ManagedUserRegistrationUtilityTest::ManagedUserRegistrationUtilityTest()
error_(GoogleServiceAuthError::NUM_STATES),
weak_ptr_factory_(this) {
service_ = ManagedUserSyncServiceFactory::GetForProfile(&profile_);
+ shared_settings_service_ =
+ ManagedUserSharedSettingsServiceFactory::GetForBrowserContext(&profile_);
}
ManagedUserRegistrationUtilityTest::~ManagedUserRegistrationUtilityTest() {
@@ -195,7 +203,8 @@ ManagedUserRegistrationUtilityTest::GetRegistrationUtility() {
registration_utility_.reset(
ManagedUserRegistrationUtility::CreateImpl(prefs(),
token_fetcher.Pass(),
- service()));
+ service(),
+ shared_settings_service()));
return registration_utility_.get();
}
« no previous file with comments | « chrome/browser/managed_mode/managed_user_registration_utility.cc ('k') | chrome/browser/managed_mode/managed_user_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698