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()); |
} |