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

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

Issue 2790483002: Fixes History page keeps on loading when signed in with Passphrase (Closed)
Patch Set: a Created 3 years, 8 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(syncer::SyncService* sync_service, PrefService* prefs);
16 ~SyncSetupServiceMock(); 16 ~SyncSetupServiceMock();
17 17
18 MOCK_CONST_METHOD0(IsSyncEnabled, bool()); 18 MOCK_CONST_METHOD0(IsSyncEnabled, bool());
19 19
20 MOCK_CONST_METHOD0(IsSyncingAllDataTypes, bool()); 20 MOCK_CONST_METHOD0(IsSyncingAllDataTypes, bool());
21 21
22 MOCK_METHOD0(GetSyncServiceState, SyncServiceState()); 22 MOCK_METHOD0(GetSyncServiceState, SyncServiceState());
23 23
24 MOCK_CONST_METHOD1(IsDataTypeEnabled, bool(syncer::ModelType)); 24 MOCK_CONST_METHOD1(IsDataTypeEnabled, bool(syncer::ModelType));
25 25
26 MOCK_CONST_METHOD0(IsSecondaryPassphraseEnabled, bool());
27
26 MOCK_METHOD0(HasFinishedInitialSetup, bool()); 28 MOCK_METHOD0(HasFinishedInitialSetup, bool());
27 29
28 MOCK_METHOD0(PrepareForFirstSyncSetup, void()); 30 MOCK_METHOD0(PrepareForFirstSyncSetup, void());
29 31
30 // Allow the real SyncSetupService::HasFinishedInitialSetup() to be used when 32 // Allow the real SyncSetupService::HasFinishedInitialSetup() to be used when
31 // mocking HasFinishedInitialSetup(). 33 // mocking HasFinishedInitialSetup().
32 bool SyncSetupServiceHasFinishedInitialSetup(); 34 bool SyncSetupServiceHasFinishedInitialSetup();
33 }; 35 };
34 36
35 #endif // IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_MOCK_H_ 37 #endif // IOS_CHROME_BROWSER_SYNC_SYNC_SETUP_SERVICE_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698