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