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 "base/tracked.h" 6 #include "chrome/browser/sync/glue/data_type_manager_mock.h" 7 8 namespace browser_sync { 9 10 DataTypeManagerMock::DataTypeManagerMock() 11 : result_(OK, FROM_HERE, syncable::ModelTypeSet()) { 12 13 // By default, calling Configure will send a SYNC_CONFIGURE_START 14 // and SYNC_CONFIGURE_DONE notification with a DataTypeManager::OK 15 // detail. 16 ON_CALL(*this, Configure(testing::_)). 17 WillByDefault(testing::DoAll( 18 NotifyFromDataTypeManager(this, 19 NotificationType::SYNC_CONFIGURE_START), 20 NotifyFromDataTypeManagerWithResult 21 (this, NotificationType::SYNC_CONFIGURE_DONE, &result_))); 22 } 23 24 DataTypeManagerMock::~DataTypeManagerMock() {} 25 26 } // namespace browser_sync 27