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

Side by Side Diff: ios/chrome/browser/sync/sync_setup_service_mock.h

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_MOCK_H_ 5 #ifndef IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_MOCK_H_
6 #define IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_MOCK_H_ 6 #define IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_MOCK_H_
7 7
8 #include "ios/chrome/browser/sync/sync_setup_service.h" 8 #include "ios/chrome/browser/sync/sync_setup_service.h"
9 9
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
11 11
12 // Mock for the class that allows configuring sync on iOS. 12 // Mock for the class that allows configuring sync on iOS.
13 class SyncSetupServiceMock : public SyncSetupService { 13 class SyncSetupServiceMock : public SyncSetupService {
14 public: 14 public:
15 SyncSetupServiceMock(syncer::SyncService* sync_service, PrefService* prefs); 15 SyncSetupServiceMock(sync_driver::SyncService* sync_service,
16 PrefService* prefs);
16 ~SyncSetupServiceMock(); 17 ~SyncSetupServiceMock();
17 18
18 MOCK_CONST_METHOD0(IsSyncEnabled, bool()); 19 MOCK_CONST_METHOD0(IsSyncEnabled, bool());
19 20
20 MOCK_CONST_METHOD0(IsSyncingAllDataTypes, bool()); 21 MOCK_CONST_METHOD0(IsSyncingAllDataTypes, bool());
21 22
22 MOCK_METHOD0(GetSyncServiceState, SyncServiceState()); 23 MOCK_METHOD0(GetSyncServiceState, SyncServiceState());
23 24
24 MOCK_CONST_METHOD1(IsDataTypeEnabled, bool(syncer::ModelType)); 25 MOCK_CONST_METHOD1(IsDataTypeEnabled, bool(syncer::ModelType));
25 26
26 MOCK_METHOD0(HasFinishedInitialSetup, bool()); 27 MOCK_METHOD0(HasFinishedInitialSetup, bool());
27 28
28 MOCK_METHOD0(PrepareForFirstSyncSetup, void()); 29 MOCK_METHOD0(PrepareForFirstSyncSetup, void());
29 30
30 // Allow the real SyncSetupService::HasFinishedInitialSetup() to be used when 31 // Allow the real SyncSetupService::HasFinishedInitialSetup() to be used when
31 // mocking HasFinishedInitialSetup(). 32 // mocking HasFinishedInitialSetup().
32 bool SyncSetupServiceHasFinishedInitialSetup(); 33 bool SyncSetupServiceHasFinishedInitialSetup();
33 }; 34 };
34 35
35 #endif // IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_MOCK_H_ 36 #endif // IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_MOCK_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/sync/sync_setup_service.cc ('k') | ios/chrome/browser/sync/sync_setup_service_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698