| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 5 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
| 6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 MOCK_METHOD1(QueryDetailedSyncStatus, | 70 MOCK_METHOD1(QueryDetailedSyncStatus, |
| 71 bool(syncer::SyncEngine::Status* result)); | 71 bool(syncer::SyncEngine::Status* result)); |
| 72 MOCK_CONST_METHOD0(GetAuthError, const GoogleServiceAuthError&()); | 72 MOCK_CONST_METHOD0(GetAuthError, const GoogleServiceAuthError&()); |
| 73 MOCK_CONST_METHOD0(IsFirstSetupInProgress, bool()); | 73 MOCK_CONST_METHOD0(IsFirstSetupInProgress, bool()); |
| 74 MOCK_CONST_METHOD0(GetLastSyncedTimeString, base::string16()); | 74 MOCK_CONST_METHOD0(GetLastSyncedTimeString, base::string16()); |
| 75 MOCK_CONST_METHOD0(HasUnrecoverableError, bool()); | 75 MOCK_CONST_METHOD0(HasUnrecoverableError, bool()); |
| 76 MOCK_CONST_METHOD0(IsSyncActive, bool()); | 76 MOCK_CONST_METHOD0(IsSyncActive, bool()); |
| 77 MOCK_CONST_METHOD0(IsEngineInitialized, bool()); | 77 MOCK_CONST_METHOD0(IsEngineInitialized, bool()); |
| 78 MOCK_CONST_METHOD0(IsSyncRequested, bool()); | 78 MOCK_CONST_METHOD0(IsSyncRequested, bool()); |
| 79 MOCK_CONST_METHOD0(IsSyncConfirmationNeeded, bool()); |
| 79 MOCK_CONST_METHOD0(waiting_for_auth, bool()); | 80 MOCK_CONST_METHOD0(waiting_for_auth, bool()); |
| 80 MOCK_METHOD1(OnActionableError, void(const syncer::SyncProtocolError&)); | 81 MOCK_METHOD1(OnActionableError, void(const syncer::SyncProtocolError&)); |
| 81 MOCK_CONST_METHOD1(IsDataTypeControllerRunning, bool(syncer::ModelType)); | 82 MOCK_CONST_METHOD1(IsDataTypeControllerRunning, bool(syncer::ModelType)); |
| 82 | 83 |
| 83 MOCK_METHOD0(GetOpenTabsUIDelegateMock, sync_sessions::OpenTabsUIDelegate*()); | 84 MOCK_METHOD0(GetOpenTabsUIDelegateMock, sync_sessions::OpenTabsUIDelegate*()); |
| 84 sync_sessions::OpenTabsUIDelegate* GetOpenTabsUIDelegate() override; | 85 sync_sessions::OpenTabsUIDelegate* GetOpenTabsUIDelegate() override; |
| 85 | 86 |
| 86 // DataTypeManagerObserver mocks. | 87 // DataTypeManagerObserver mocks. |
| 87 MOCK_METHOD1(OnConfigureDone, | 88 MOCK_METHOD1(OnConfigureDone, |
| 88 void(const syncer::DataTypeManager::ConfigureResult&)); | 89 void(const syncer::DataTypeManager::ConfigureResult&)); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 100 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); | 101 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); |
| 101 MOCK_METHOD2(SetEncryptionPassphrase, | 102 MOCK_METHOD2(SetEncryptionPassphrase, |
| 102 void(const std::string& passphrase, PassphraseType type)); | 103 void(const std::string& passphrase, PassphraseType type)); |
| 103 | 104 |
| 104 MOCK_METHOD0(OnSetupInProgressHandleDestroyed, void()); | 105 MOCK_METHOD0(OnSetupInProgressHandleDestroyed, void()); |
| 105 }; | 106 }; |
| 106 | 107 |
| 107 } // namespace browser_sync | 108 } // namespace browser_sync |
| 108 | 109 |
| 109 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 110 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
| OLD | NEW |