| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 MOCK_CONST_METHOD0(GetAuthError, const GoogleServiceAuthError&()); | 86 MOCK_CONST_METHOD0(GetAuthError, const GoogleServiceAuthError&()); |
| 87 MOCK_CONST_METHOD0(FirstSetupInProgress, bool()); | 87 MOCK_CONST_METHOD0(FirstSetupInProgress, bool()); |
| 88 MOCK_CONST_METHOD0(GetLastSyncedTimeString, base::string16()); | 88 MOCK_CONST_METHOD0(GetLastSyncedTimeString, base::string16()); |
| 89 MOCK_CONST_METHOD0(HasUnrecoverableError, bool()); | 89 MOCK_CONST_METHOD0(HasUnrecoverableError, bool()); |
| 90 MOCK_CONST_METHOD0(sync_initialized, bool()); | 90 MOCK_CONST_METHOD0(sync_initialized, bool()); |
| 91 MOCK_CONST_METHOD0(IsStartSuppressed, bool()); | 91 MOCK_CONST_METHOD0(IsStartSuppressed, bool()); |
| 92 MOCK_CONST_METHOD0(waiting_for_auth, bool()); | 92 MOCK_CONST_METHOD0(waiting_for_auth, bool()); |
| 93 MOCK_METHOD1(OnActionableError, void( | 93 MOCK_METHOD1(OnActionableError, void( |
| 94 const syncer::SyncProtocolError&)); | 94 const syncer::SyncProtocolError&)); |
| 95 MOCK_METHOD1(SetSetupInProgress, void(bool)); | 95 MOCK_METHOD1(SetSetupInProgress, void(bool)); |
| 96 MOCK_CONST_METHOD0(IsSessionsDataTypeControllerRunning, bool()); | 96 MOCK_CONST_METHOD1(IsDataTypeControllerRunning, bool(syncer::ModelType)); |
| 97 | |
| 98 MOCK_CONST_METHOD0(GetAllSignedInDevicesMock, | |
| 99 std::vector<browser_sync::DeviceInfo*>* ()); | |
| 100 // This is to get around the fact that GMOCK does not handle Scoped*. | |
| 101 virtual ScopedVector<browser_sync::DeviceInfo> | |
| 102 GetAllSignedInDevices() const OVERRIDE; | |
| 103 | 97 |
| 104 // DataTypeManagerObserver mocks. | 98 // DataTypeManagerObserver mocks. |
| 105 MOCK_METHOD0(OnConfigureBlocked, void()); | 99 MOCK_METHOD0(OnConfigureBlocked, void()); |
| 106 MOCK_METHOD1(OnConfigureDone, | 100 MOCK_METHOD1(OnConfigureDone, |
| 107 void(const sync_driver::DataTypeManager::ConfigureResult&)); | 101 void(const sync_driver::DataTypeManager::ConfigureResult&)); |
| 108 MOCK_METHOD0(OnConfigureRetry, void()); | 102 MOCK_METHOD0(OnConfigureRetry, void()); |
| 109 MOCK_METHOD0(OnConfigureStart, void()); | 103 MOCK_METHOD0(OnConfigureStart, void()); |
| 110 | 104 |
| 111 MOCK_METHOD0(IsSyncEnabledAndLoggedIn, bool()); | 105 MOCK_METHOD0(IsSyncEnabledAndLoggedIn, bool()); |
| 112 MOCK_CONST_METHOD0(IsManaged, bool()); | 106 MOCK_CONST_METHOD0(IsManaged, bool()); |
| 113 MOCK_METHOD0(IsOAuthRefreshTokenAvailable, bool()); | 107 MOCK_METHOD0(IsOAuthRefreshTokenAvailable, bool()); |
| 114 | 108 |
| 115 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); | 109 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); |
| 116 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); | 110 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); |
| 117 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); | 111 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); |
| 118 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType()); | 112 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType()); |
| 119 MOCK_CONST_METHOD0(GetPassphraseTime, base::Time()); | 113 MOCK_CONST_METHOD0(GetPassphraseTime, base::Time()); |
| 120 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time()); | 114 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time()); |
| 121 | 115 |
| 122 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); | 116 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); |
| 123 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, | 117 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, |
| 124 PassphraseType type)); | 118 PassphraseType type)); |
| 125 | 119 |
| 126 MOCK_METHOD1(StartUpSlowBackendComponents, void(BackendMode)); | 120 MOCK_METHOD1(StartUpSlowBackendComponents, void(BackendMode)); |
| 127 }; | 121 }; |
| 128 | 122 |
| 129 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 123 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
| OLD | NEW |