| 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 CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
| 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 MOCK_CONST_METHOD0(GetRegisteredDataTypes, syncer::ModelTypeSet()); | 81 MOCK_CONST_METHOD0(GetRegisteredDataTypes, syncer::ModelTypeSet()); |
| 82 MOCK_CONST_METHOD0(GetLastSessionSnapshot, | 82 MOCK_CONST_METHOD0(GetLastSessionSnapshot, |
| 83 syncer::sessions::SyncSessionSnapshot()); | 83 syncer::sessions::SyncSessionSnapshot()); |
| 84 | 84 |
| 85 MOCK_METHOD1(QueryDetailedSyncStatus, | 85 MOCK_METHOD1(QueryDetailedSyncStatus, |
| 86 bool(browser_sync::SyncBackendHost::Status* result)); | 86 bool(browser_sync::SyncBackendHost::Status* result)); |
| 87 MOCK_CONST_METHOD0(GetAuthError, const GoogleServiceAuthError&()); | 87 MOCK_CONST_METHOD0(GetAuthError, const GoogleServiceAuthError&()); |
| 88 MOCK_CONST_METHOD0(FirstSetupInProgress, bool()); | 88 MOCK_CONST_METHOD0(FirstSetupInProgress, bool()); |
| 89 MOCK_CONST_METHOD0(GetLastSyncedTimeString, base::string16()); | 89 MOCK_CONST_METHOD0(GetLastSyncedTimeString, base::string16()); |
| 90 MOCK_CONST_METHOD0(HasUnrecoverableError, bool()); | 90 MOCK_CONST_METHOD0(HasUnrecoverableError, bool()); |
| 91 MOCK_CONST_METHOD0(SyncActive, bool()); | 91 MOCK_CONST_METHOD0(IsSyncActive, bool()); |
| 92 MOCK_CONST_METHOD0(backend_initialized, bool()); | 92 MOCK_CONST_METHOD0(backend_initialized, bool()); |
| 93 MOCK_CONST_METHOD0(IsStartSuppressed, bool()); | 93 MOCK_CONST_METHOD0(IsStartSuppressed, bool()); |
| 94 MOCK_CONST_METHOD0(waiting_for_auth, bool()); | 94 MOCK_CONST_METHOD0(waiting_for_auth, bool()); |
| 95 MOCK_METHOD1(OnActionableError, void(const syncer::SyncProtocolError&)); | 95 MOCK_METHOD1(OnActionableError, void(const syncer::SyncProtocolError&)); |
| 96 MOCK_METHOD1(SetSetupInProgress, void(bool)); | 96 MOCK_METHOD1(SetSetupInProgress, void(bool)); |
| 97 MOCK_CONST_METHOD1(IsDataTypeControllerRunning, bool(syncer::ModelType)); | 97 MOCK_CONST_METHOD1(IsDataTypeControllerRunning, bool(syncer::ModelType)); |
| 98 | 98 |
| 99 // DataTypeManagerObserver mocks. | 99 // DataTypeManagerObserver mocks. |
| 100 MOCK_METHOD0(OnConfigureBlocked, void()); | 100 MOCK_METHOD0(OnConfigureBlocked, void()); |
| 101 MOCK_METHOD1(OnConfigureDone, | 101 MOCK_METHOD1(OnConfigureDone, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 114 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time()); | 114 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time()); |
| 115 | 115 |
| 116 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); | 116 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); |
| 117 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, | 117 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, |
| 118 PassphraseType type)); | 118 PassphraseType type)); |
| 119 | 119 |
| 120 MOCK_METHOD1(StartUpSlowBackendComponents, void(BackendMode)); | 120 MOCK_METHOD1(StartUpSlowBackendComponents, void(BackendMode)); |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 123 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
| OLD | NEW |