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 3 // found in the LICENSE file. 4 5 #include "chrome/browser/sync/glue/sync_backend_host_mock.h" 6 7 namespace browser_sync { 8 9 ACTION(InvokeTask) { 10 arg2->Run(); 11 delete arg2; 12 } 13 14 SyncBackendHostMock::SyncBackendHostMock() { 15 // By default, invoke the ready callback. 16 ON_CALL(*this, ConfigureDataTypes(testing::_, testing::_, testing::_)). 17 WillByDefault(InvokeTask()); 18 } 19 20 SyncBackendHostMock::~SyncBackendHostMock() {} 21 22 } // namespace browser_sync 23