1 // Copyright 2013 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.
5 #ifndef IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_MOCK_H_
6 #define IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_MOCK_H_
8 #include "ios/chrome/browser/sync/sync_setup_service.h"
10 #include "testing/gmock/include/gmock/gmock.h"
12 // Mock for the class that allows configuring sync on iOS.
13 class SyncSetupServiceMock
: public SyncSetupService
{
15 SyncSetupServiceMock(sync_driver::SyncService
* sync_service
,
17 ~SyncSetupServiceMock();
19 MOCK_CONST_METHOD0(IsSyncEnabled
, bool());
21 MOCK_CONST_METHOD0(IsSyncingAllDataTypes
, bool());
23 MOCK_METHOD0(GetSyncServiceState
, SyncServiceState());
25 MOCK_CONST_METHOD1(IsDataTypeEnabled
, bool(syncer::ModelType
));
28 #endif // IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_MOCK_H_