| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 MOCK_CONST_METHOD0(EncryptEverythingEnabled, bool()); | 72 MOCK_CONST_METHOD0(EncryptEverythingEnabled, bool()); |
| 73 MOCK_METHOD0(EnableEncryptEverything, void()); | 73 MOCK_METHOD0(EnableEncryptEverything, void()); |
| 74 | 74 |
| 75 MOCK_METHOD1(ChangePreferredDataTypes, | 75 MOCK_METHOD1(ChangePreferredDataTypes, |
| 76 void(syncable::ModelTypeSet preferred_types)); | 76 void(syncable::ModelTypeSet preferred_types)); |
| 77 MOCK_CONST_METHOD0(GetPreferredDataTypes, syncable::ModelTypeSet()); | 77 MOCK_CONST_METHOD0(GetPreferredDataTypes, syncable::ModelTypeSet()); |
| 78 MOCK_CONST_METHOD0(GetRegisteredDataTypes, syncable::ModelTypeSet()); | 78 MOCK_CONST_METHOD0(GetRegisteredDataTypes, syncable::ModelTypeSet()); |
| 79 MOCK_CONST_METHOD0(GetLastSessionSnapshot, | 79 MOCK_CONST_METHOD0(GetLastSessionSnapshot, |
| 80 syncer::sessions::SyncSessionSnapshot()); | 80 syncer::sessions::SyncSessionSnapshot()); |
| 81 | 81 |
| 82 MOCK_METHOD0(QueryDetailedSyncStatus, | 82 MOCK_METHOD1(QueryDetailedSyncStatus, |
| 83 browser_sync::SyncBackendHost::Status()); | 83 bool(browser_sync::SyncBackendHost::Status* result)); |
| 84 MOCK_CONST_METHOD0(GetAuthError, const GoogleServiceAuthError&()); | 84 MOCK_CONST_METHOD0(GetAuthError, const GoogleServiceAuthError&()); |
| 85 MOCK_CONST_METHOD0(FirstSetupInProgress, bool()); | 85 MOCK_CONST_METHOD0(FirstSetupInProgress, bool()); |
| 86 MOCK_CONST_METHOD0(GetLastSyncedTimeString, string16()); | 86 MOCK_CONST_METHOD0(GetLastSyncedTimeString, string16()); |
| 87 MOCK_CONST_METHOD0(HasUnrecoverableError, bool()); | 87 MOCK_CONST_METHOD0(HasUnrecoverableError, bool()); |
| 88 MOCK_CONST_METHOD0(sync_initialized, bool()); | 88 MOCK_CONST_METHOD0(sync_initialized, bool()); |
| 89 MOCK_CONST_METHOD0(waiting_for_auth, bool()); | 89 MOCK_CONST_METHOD0(waiting_for_auth, bool()); |
| 90 MOCK_METHOD1(OnActionableError, void( | 90 MOCK_METHOD1(OnActionableError, void( |
| 91 const syncer::SyncProtocolError&)); | 91 const syncer::SyncProtocolError&)); |
| 92 | 92 |
| 93 MOCK_METHOD0(IsSyncEnabledAndLoggedIn, bool()); | 93 MOCK_METHOD0(IsSyncEnabledAndLoggedIn, bool()); |
| 94 MOCK_METHOD0(IsSyncTokenAvailable, bool()); | 94 MOCK_METHOD0(IsSyncTokenAvailable, bool()); |
| 95 | 95 |
| 96 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); | 96 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); |
| 97 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); | 97 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); |
| 98 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); | 98 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); |
| 99 | 99 |
| 100 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); | 100 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); |
| 101 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, | 101 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, |
| 102 PassphraseType type)); | 102 PassphraseType type)); |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 105 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
| OLD | NEW |