summaryrefslogtreecommitdiffstats
path: root/components/sync_driver/data_type_error_handler_mock.h
diff options
context:
space:
mode:
authorblundell@chromium.org <blundell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-03 23:55:32 +0000
committerblundell@chromium.org <blundell@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-02-03 23:55:32 +0000
commit649701aeffc49f656584ec45fdaecd185c5cdd2d (patch)
tree8d9662d818219dbe29594974f5e4860f2d7dde75 /components/sync_driver/data_type_error_handler_mock.h
parenteec097142c4b7d09ff01a03e2e2117f290d68cfc (diff)
downloadchromium_src-649701aeffc49f656584ec45fdaecd185c5cdd2d.zip
chromium_src-649701aeffc49f656584ec45fdaecd185c5cdd2d.tar.gz
chromium_src-649701aeffc49f656584ec45fdaecd185c5cdd2d.tar.bz2
Move files from //chrome/browser/sync to sync_driver component.
This CL moves files that depend on the now-componentized data_type_controller.h and data_type_manager.h into the sync_driver component. For the most part these files are moved as-is. The only exception is sync_model_association_manager, which had a DCHECK about being on BrowserThread::UI; this DCHECK is removed. BUG=339726 TBR=joi Review URL: https://codereview.chromium.org/133503011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@248621 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/sync_driver/data_type_error_handler_mock.h')
-rw-r--r--components/sync_driver/data_type_error_handler_mock.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/components/sync_driver/data_type_error_handler_mock.h b/components/sync_driver/data_type_error_handler_mock.h
new file mode 100644
index 0000000..beedef0
--- /dev/null
+++ b/components/sync_driver/data_type_error_handler_mock.h
@@ -0,0 +1,28 @@
+// Copyright 2014 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.
+#ifndef COMPONENTS_SYNC_DRIVER_DATA_TYPE_ERROR_HANDLER_MOCK_H__
+#define COMPONENTS_SYNC_DRIVER_DATA_TYPE_ERROR_HANDLER_MOCK_H__
+
+#include "components/sync_driver/data_type_controller.h"
+#include "sync/internal_api/public/base/model_type.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace browser_sync {
+
+class DataTypeErrorHandlerMock : public DataTypeErrorHandler {
+ public:
+ DataTypeErrorHandlerMock();
+ virtual ~DataTypeErrorHandlerMock();
+ MOCK_METHOD2(OnSingleDatatypeUnrecoverableError,
+ void(const tracked_objects::Location&, const std::string&));
+ MOCK_METHOD3(CreateAndUploadError,
+ syncer::SyncError(const tracked_objects::Location&,
+ const std::string&,
+ syncer::ModelType));
+
+};
+
+} // namesspace browser_sync
+
+#endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_ERROR_HANDLER_MOCK_H__