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

Unified Diff: chrome/browser/sync/profile_sync_test_util.cc

Issue 2768633003: Dynamic updating recent menu for tabs from other devices. (Closed)
Patch Set: Fixes compilation and test on Mac. Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
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);
+}

Powered by Google App Engine
This is Rietveld 408576698