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

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

Issue 964563002: Replace SetAuthenticatedUsername with SetAuthenticatedAccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@priv
Patch Set: Fix order of init Created 5 years, 8 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
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 "chrome/browser/sync/profile_sync_service_mock.h" 5 #include "chrome/browser/sync/profile_sync_service_mock.h"
6 6
7 #include "base/prefs/pref_service.h" 7 #include "base/prefs/pref_service.h"
8 #include "base/prefs/testing_pref_store.h" 8 #include "base/prefs/testing_pref_store.h"
9 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 9 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
10 #include "chrome/browser/signin/signin_manager_factory.h" 10 #include "chrome/browser/signin/signin_manager_factory.h"
(...skipping 29 matching lines...) Expand all
40 browser_sync::MANUAL_START) { 40 browser_sync::MANUAL_START) {
41 } 41 }
42 42
43 ProfileSyncServiceMock::~ProfileSyncServiceMock() { 43 ProfileSyncServiceMock::~ProfileSyncServiceMock() {
44 } 44 }
45 45
46 // static 46 // static
47 TestingProfile* ProfileSyncServiceMock::MakeSignedInTestingProfile() { 47 TestingProfile* ProfileSyncServiceMock::MakeSignedInTestingProfile() {
48 TestingProfile* profile = new TestingProfile(); 48 TestingProfile* profile = new TestingProfile();
49 SigninManagerFactory::GetForProfile(profile)-> 49 SigninManagerFactory::GetForProfile(profile)->
50 SetAuthenticatedUsername("foo"); 50 SetAuthenticatedAccountInfo("12345", "foo");
Nicolas Zea 2015/04/10 20:15:28 In the other test we set these to the same value.
Roger Tawa OOO till Jul 10th 2015/04/11 00:23:08 The gaia id and email are just strings, and nowher
51 return profile; 51 return profile;
52 } 52 }
53 53
54 // static 54 // static
55 KeyedService* ProfileSyncServiceMock::BuildMockProfileSyncService( 55 KeyedService* ProfileSyncServiceMock::BuildMockProfileSyncService(
56 content::BrowserContext* profile) { 56 content::BrowserContext* profile) {
57 return new ProfileSyncServiceMock(static_cast<Profile*>(profile)); 57 return new ProfileSyncServiceMock(static_cast<Profile*>(profile));
58 } 58 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698