1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_ERROR_HANDLER_MOCK_H__
5 #define CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_ERROR_HANDLER_MOCK_H__
7 #include "chrome/browser/sync/glue/data_type_controller.h"
8 #include "testing/gmock/include/gmock/gmock.h"
10 #include "sync/internal_api/public/base/model_type.h"
12 namespace browser_sync {
14 class DataTypeErrorHandlerMock : public DataTypeErrorHandler {
16 DataTypeErrorHandlerMock();
17 virtual ~DataTypeErrorHandlerMock();
18 MOCK_METHOD2(OnSingleDatatypeUnrecoverableError,
19 void(const tracked_objects::Location&, const std::string&));
20 MOCK_METHOD3(CreateAndUploadError,
21 syncer::SyncError(const tracked_objects::Location&,
27 } // namesspace browser_sync
29 #endif // CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_ERROR_HANDLER_MOCK_H__