| 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_
|
|
|