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

Side by Side Diff: chrome/browser/sync/profile_sync_service_mock.cc

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/prefs/pref_service.h"
5 #include "base/prefs/testing_pref_store.h" 6 #include "base/prefs/testing_pref_store.h"
6 #include "chrome/browser/prefs/pref_service.h"
7 #include "chrome/browser/signin/signin_manager_factory.h" 7 #include "chrome/browser/signin/signin_manager_factory.h"
8 #include "chrome/browser/sync/profile_sync_service_mock.h" 8 #include "chrome/browser/sync/profile_sync_service_mock.h"
9 #include "chrome/common/pref_names.h" 9 #include "chrome/common/pref_names.h"
10 #include "chrome/common/url_constants.h" 10 #include "chrome/common/url_constants.h"
11 #include "chrome/test/base/testing_profile.h" 11 #include "chrome/test/base/testing_profile.h"
12 12
13 ProfileSyncServiceMock::ProfileSyncServiceMock() 13 ProfileSyncServiceMock::ProfileSyncServiceMock()
14 : ProfileSyncService(NULL, 14 : ProfileSyncService(NULL,
15 NULL, 15 NULL,
16 NULL, 16 NULL,
(...skipping 15 matching lines...) Expand all
32 TestingProfile* profile = new TestingProfile(); 32 TestingProfile* profile = new TestingProfile();
33 profile->GetPrefs()->SetString(prefs::kGoogleServicesUsername, "foo"); 33 profile->GetPrefs()->SetString(prefs::kGoogleServicesUsername, "foo");
34 return profile; 34 return profile;
35 } 35 }
36 36
37 // static 37 // static
38 ProfileKeyedService* ProfileSyncServiceMock::BuildMockProfileSyncService( 38 ProfileKeyedService* ProfileSyncServiceMock::BuildMockProfileSyncService(
39 Profile* profile) { 39 Profile* profile) {
40 return new ProfileSyncServiceMock(profile); 40 return new ProfileSyncServiceMock(profile);
41 } 41 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service_factory.cc ('k') | chrome/browser/sync/profile_sync_service_password_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698