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

Side by Side 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, 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/glue/sync_backend_host_mock.h" 5 #include "chrome/browser/sync/glue/sync_backend_host_mock.h"
6 6
7 namespace browser_sync { 7 namespace browser_sync {
8 8
9 using ::testing::_; 9 using ::testing::_;
10 using ::testing::Return;
10 11
11 ACTION(InvokeTask) { 12 ACTION(InvokeTask) {
12 arg3.Run(true); 13 arg3.Run(true);
13 } 14 }
14 15
15 SyncBackendHostMock::SyncBackendHostMock() { 16 SyncBackendHostMock::SyncBackendHostMock() {
16 // By default, invoke the ready callback. 17 // By default, invoke the ready callback.
17 ON_CALL(*this, ConfigureDataTypes(_, _, _, _, _)). 18 ON_CALL(*this, ConfigureDataTypes(_, _, _, _, _)).
18 WillByDefault(InvokeTask()); 19 WillByDefault(InvokeTask());
20 ON_CALL(*this, GetUnsyncedDataTypes()).
21 WillByDefault(Return(syncable::ModelTypeSet()));
19 } 22 }
20 23
21 SyncBackendHostMock::~SyncBackendHostMock() {} 24 SyncBackendHostMock::~SyncBackendHostMock() {}
22 25
23 } // namespace browser_sync 26 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698