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

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

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Rebase. 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(sync_driver::SyncService* sync_service, 15 SyncSetupServiceMock(syncer::SyncService* sync_service, PrefService* prefs);
16 PrefService* prefs);
17 ~SyncSetupServiceMock(); 16 ~SyncSetupServiceMock();
18 17
19 MOCK_CONST_METHOD0(IsSyncEnabled, bool()); 18 MOCK_CONST_METHOD0(IsSyncEnabled, bool());
20 19
21 MOCK_CONST_METHOD0(IsSyncingAllDataTypes, bool()); 20 MOCK_CONST_METHOD0(IsSyncingAllDataTypes, bool());
22 21
23 MOCK_METHOD0(GetSyncServiceState, SyncServiceState()); 22 MOCK_METHOD0(GetSyncServiceState, SyncServiceState());
24 23
25 MOCK_CONST_METHOD1(IsDataTypeEnabled, bool(syncer::ModelType)); 24 MOCK_CONST_METHOD1(IsDataTypeEnabled, bool(syncer::ModelType));
26 25
27 MOCK_METHOD0(HasFinishedInitialSetup, bool()); 26 MOCK_METHOD0(HasFinishedInitialSetup, bool());
28 27
29 MOCK_METHOD0(PrepareForFirstSyncSetup, void()); 28 MOCK_METHOD0(PrepareForFirstSyncSetup, void());
30 29
31 // Allow the real SyncSetupService::HasFinishedInitialSetup() to be used when 30 // Allow the real SyncSetupService::HasFinishedInitialSetup() to be used when
32 // mocking HasFinishedInitialSetup(). 31 // mocking HasFinishedInitialSetup().
33 bool SyncSetupServiceHasFinishedInitialSetup(); 32 bool SyncSetupServiceHasFinishedInitialSetup();
34 }; 33 };
35 34
36 #endif // IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_MOCK_H_ 35 #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