Index: chrome/browser/sync/glue/data_type_manager_mock.cc |
diff --git a/chrome/browser/sync/glue/data_type_manager_mock.cc b/chrome/browser/sync/glue/data_type_manager_mock.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9cc445e66500c60db24a0dcfb138c8fc5e81337f |
--- /dev/null |
+++ b/chrome/browser/sync/glue/data_type_manager_mock.cc |
@@ -0,0 +1,24 @@ |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/browser/sync/glue/data_type_manager_mock.h" |
+ |
+namespace browser_sync { |
+ |
+DataTypeManagerMock::DataTypeManagerMock() |
+ : result_(OK) { |
+ // By default, calling Configure will send a SYNC_CONFIGURE_START |
+ // and SYNC_CONFIGURE_DONE notification with a DataTypeManager::OK |
+ // detail. |
+ ON_CALL(*this, Configure(testing::_)). |
+ WillByDefault(testing::DoAll( |
+ NotifyFromDataTypeManager(this, |
+ NotificationType::SYNC_CONFIGURE_START), |
+ NotifyFromDataTypeManagerWithResult |
+ (this, NotificationType::SYNC_CONFIGURE_DONE, &result_))); |
+} |
+ |
+DataTypeManagerMock::~DataTypeManagerMock() {} |
+ |
+} // namespace browser_sync |