| OLD | NEW |
| 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/testing_pref_store.h" | 5 #include "base/prefs/testing_pref_store.h" |
| 6 #include "chrome/browser/prefs/pref_service.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/browser/ui/webui/chrome_url_data_manager.h" | |
| 10 #include "chrome/common/pref_names.h" | 9 #include "chrome/common/pref_names.h" |
| 11 #include "chrome/common/url_constants.h" | 10 #include "chrome/common/url_constants.h" |
| 12 #include "chrome/test/base/testing_profile.h" | 11 #include "chrome/test/base/testing_profile.h" |
| 13 | 12 |
| 14 ProfileSyncServiceMock::ProfileSyncServiceMock() | 13 ProfileSyncServiceMock::ProfileSyncServiceMock() |
| 15 : ProfileSyncService(NULL, | 14 : ProfileSyncService(NULL, |
| 16 NULL, | 15 NULL, |
| 17 NULL, | 16 NULL, |
| 18 ProfileSyncService::MANUAL_START) { | 17 ProfileSyncService::MANUAL_START) { |
| 19 } | 18 } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 33 TestingProfile* profile = new TestingProfile(); | 32 TestingProfile* profile = new TestingProfile(); |
| 34 profile->GetPrefs()->SetString(prefs::kGoogleServicesUsername, "foo"); | 33 profile->GetPrefs()->SetString(prefs::kGoogleServicesUsername, "foo"); |
| 35 return profile; | 34 return profile; |
| 36 } | 35 } |
| 37 | 36 |
| 38 // static | 37 // static |
| 39 ProfileKeyedService* ProfileSyncServiceMock::BuildMockProfileSyncService( | 38 ProfileKeyedService* ProfileSyncServiceMock::BuildMockProfileSyncService( |
| 40 Profile* profile) { | 39 Profile* profile) { |
| 41 return new ProfileSyncServiceMock(profile); | 40 return new ProfileSyncServiceMock(profile); |
| 42 } | 41 } |
| OLD | NEW |