Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1000)

Unified Diff: sync/internal_api/public/test/data_type_error_handler_mock.h

Issue 1966023002: [Sync] Move DataTypeErrorHandler to //sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Found an unsaved buffer :( Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sync/internal_api/public/test/data_type_error_handler_mock.h
diff --git a/sync/internal_api/public/test/data_type_error_handler_mock.h b/sync/internal_api/public/test/data_type_error_handler_mock.h
new file mode 100644
index 0000000000000000000000000000000000000000..eb755a84858ba2d257fe9b7da06865e215240e0d
--- /dev/null
+++ b/sync/internal_api/public/test/data_type_error_handler_mock.h
@@ -0,0 +1,29 @@
+// 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 SYNC_INTERNAL_API_PUBLIC_TEST_DATA_TYPE_ERROR_HANDLER_MOCK_H__
+#define SYNC_INTERNAL_API_PUBLIC_TEST_DATA_TYPE_ERROR_HANDLER_MOCK_H__
+
+#include <string>
+
+#include "sync/internal_api/public/base/model_type.h"
+#include "sync/internal_api/public/data_type_error_handler.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace syncer {
+
+class DataTypeErrorHandlerMock : public DataTypeErrorHandler {
+ public:
+ DataTypeErrorHandlerMock();
+ virtual ~DataTypeErrorHandlerMock();
+ MOCK_METHOD1(OnSingleDataTypeUnrecoverableError, void(const SyncError&));
+ MOCK_METHOD3(CreateAndUploadError,
+ SyncError(const tracked_objects::Location&,
+ const std::string&,
+ ModelType));
+};
+
+} // namespace syncer
+
+#endif // SYNC_INTERNAL_API_PUBLIC_TEST_DATA_TYPE_ERROR_HANDLER_MOCK_H__
« no previous file with comments | « sync/internal_api/public/data_type_error_handler.h ('k') | sync/internal_api/test/data_type_error_handler_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698