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

Unified Diff: chrome/browser/sync/glue/sync_backend_host_mock.cc

Issue 7655055: [Sync] Make BackendMigrator not wait for full sync cycles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mac test Created 9 years, 4 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/glue/sync_backend_host_mock.cc
diff --git a/chrome/browser/sync/glue/sync_backend_host_mock.cc b/chrome/browser/sync/glue/sync_backend_host_mock.cc
index 1e5705ac0399f173c614f88b617005cc6351da4e..2d641f86a432255327ef710a080ff37988c5e547 100644
--- a/chrome/browser/sync/glue/sync_backend_host_mock.cc
+++ b/chrome/browser/sync/glue/sync_backend_host_mock.cc
@@ -7,6 +7,7 @@
namespace browser_sync {
using ::testing::_;
+using ::testing::Return;
ACTION(InvokeTask) {
arg3.Run(true);
@@ -16,6 +17,8 @@ SyncBackendHostMock::SyncBackendHostMock() {
// By default, invoke the ready callback.
ON_CALL(*this, ConfigureDataTypes(_, _, _, _, _)).
WillByDefault(InvokeTask());
+ ON_CALL(*this, GetUnsyncedDataTypes()).
+ WillByDefault(Return(syncable::ModelTypeSet()));
}
SyncBackendHostMock::~SyncBackendHostMock() {}

Powered by Google App Engine
This is Rietveld 408576698