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

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

Issue 566623003: Refactor syncable DEVICE_INFO type from ChangeProcessor to SyncableService - part 3. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More CR feedback addressed in DeviceInfoSyncService. Created 6 years, 3 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
« no previous file with comments | « chrome/browser/sync/profile_sync_service_mock.h ('k') | chrome/browser/ui/webui/history_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 TestingProfile* profile = new TestingProfile(); 48 TestingProfile* profile = new TestingProfile();
49 profile->GetPrefs()->SetString(prefs::kGoogleServicesUsername, "foo"); 49 profile->GetPrefs()->SetString(prefs::kGoogleServicesUsername, "foo");
50 return profile; 50 return profile;
51 } 51 }
52 52
53 // static 53 // static
54 KeyedService* ProfileSyncServiceMock::BuildMockProfileSyncService( 54 KeyedService* ProfileSyncServiceMock::BuildMockProfileSyncService(
55 content::BrowserContext* profile) { 55 content::BrowserContext* profile) {
56 return new ProfileSyncServiceMock(static_cast<Profile*>(profile)); 56 return new ProfileSyncServiceMock(static_cast<Profile*>(profile));
57 } 57 }
58
59 ScopedVector<browser_sync::DeviceInfo>
60 ProfileSyncServiceMock::GetAllSignedInDevices() const {
61 ScopedVector<browser_sync::DeviceInfo> devices;
62 std::vector<browser_sync::DeviceInfo*>* device_vector =
63 GetAllSignedInDevicesMock();
64 devices.get() = *device_vector;
65 return devices.Pass();
66 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service_mock.h ('k') | chrome/browser/ui/webui/history_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698