Index: chrome/browser/sync/profile_sync_test_util.cc |
diff --git a/chrome/browser/sync/profile_sync_test_util.cc b/chrome/browser/sync/profile_sync_test_util.cc |
index 0b1886fd2ad4544ccb5533134bee8ecabb80a9c3..9787f2ddae77f7f8c18848df67382ad6259f1308 100644 |
--- a/chrome/browser/sync/profile_sync_test_util.cc |
+++ b/chrome/browser/sync/profile_sync_test_util.cc |
@@ -72,3 +72,13 @@ std::unique_ptr<KeyedService> BuildMockProfileSyncService( |
CreateProfileSyncServiceParamsForTest( |
Profile::FromBrowserContext(context))); |
} |
+ |
+std::unique_ptr<KeyedService> BuildNiceMockProfileSyncService( |
+ content::BrowserContext* context) { |
+ ProfileSyncService::InitParams init_params = |
Peter Kasting
2017/03/28 21:38:39
Nit: I might inline this below just to keep it in
sath
2017/03/29 06:26:15
I can't because of
---
error: taking the address o
|
+ CreateProfileSyncServiceParamsForTest( |
+ Profile::FromBrowserContext(context)); |
+ |
+ return base::MakeUnique< |
+ testing::NiceMock<browser_sync::ProfileSyncServiceMock>>(&init_params); |
+} |