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

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

Issue 6380004: [Sync] Tidy up SyncBackendHost interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix windows compile Created 9 years, 11 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 fe488adbfeba40be566e9310b0b25c26cf1cf315..2d618f7281efde9597c591942c18e883fffba81f 100644
--- a/chrome/browser/sync/glue/sync_backend_host_mock.cc
+++ b/chrome/browser/sync/glue/sync_backend_host_mock.cc
@@ -6,6 +6,11 @@
namespace browser_sync {
+ACTION(InvokeTask) {
+ arg2->Run();
+ delete arg2;
+}
+
SyncBackendHostMock::SyncBackendHostMock() {
// By default, the RequestPause and RequestResume methods will
// send the confirmation notification and return true.
@@ -17,7 +22,7 @@ SyncBackendHostMock::SyncBackendHostMock() {
testing::Return(true)));
// By default, invoke the ready callback.
- ON_CALL(*this, ConfigureDataTypes(testing::_, testing::_)).
+ ON_CALL(*this, ConfigureDataTypes(testing::_, testing::_, testing::_)).
WillByDefault(InvokeTask());
}

Powered by Google App Engine
This is Rietveld 408576698