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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_MOCK_H_
6 #define IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_MOCK_H_
7
8 #include "ios/chrome/browser/sync/sync_setup_service.h"
9
10 #include "testing/gmock/include/gmock/gmock.h"
11
12 // Mock for the class that allows configuring sync on iOS.
13 class SyncSetupServiceMock : public SyncSetupService {
14 public:
15 SyncSetupServiceMock(sync_driver::SyncService* sync_service,
16 PrefService* prefs);
17 ~SyncSetupServiceMock();
18
19 MOCK_CONST_METHOD0(IsSyncEnabled, bool());
20
21 MOCK_CONST_METHOD0(IsSyncingAllDataTypes, bool());
22
23 MOCK_METHOD0(GetSyncServiceState, SyncServiceState());
24
25 MOCK_CONST_METHOD1(IsDataTypeEnabled, bool(syncer::ModelType));
26 };
27
28 #endif // IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698