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

Unified Diff: ios/chrome/browser/sync/sync_setup_service_mock.h

Issue 1148573002: [iOS] Upstream SyncSetupService (and mock) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: ios/chrome/browser/sync/sync_setup_service_mock.h
diff --git a/ios/chrome/browser/sync/sync_setup_service_mock.h b/ios/chrome/browser/sync/sync_setup_service_mock.h
new file mode 100644
index 0000000000000000000000000000000000000000..aa2f8eaa1daf8f5fe6ab0eef66c5c048f788f7ff
--- /dev/null
+++ b/ios/chrome/browser/sync/sync_setup_service_mock.h
@@ -0,0 +1,28 @@
+// Copyright 2013 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 IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_MOCK_H_
+#define IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_MOCK_H_
+
+#include "ios/chrome/browser/sync/sync_setup_service.h"
+
+#include "testing/gmock/include/gmock/gmock.h"
+
+// Mock for the class that allows configuring sync on iOS.
+class SyncSetupServiceMock : public SyncSetupService {
+ public:
+ SyncSetupServiceMock(sync_driver::SyncService* sync_service,
+ PrefService* prefs);
+ ~SyncSetupServiceMock();
+
+ MOCK_CONST_METHOD0(IsSyncEnabled, bool());
+
+ MOCK_CONST_METHOD0(IsSyncingAllDataTypes, bool());
+
+ MOCK_METHOD0(GetSyncServiceState, SyncServiceState());
+
+ MOCK_CONST_METHOD1(IsDataTypeEnabled, bool(syncer::ModelType));
+};
+
+#endif // IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_MOCK_H_

Powered by Google App Engine
This is Rietveld 408576698