| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); | 108 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); |
| 109 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); | 109 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); |
| 110 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); | 110 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); |
| 111 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType()); | 111 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType()); |
| 112 MOCK_CONST_METHOD0(GetPassphraseTime, base::Time()); | 112 MOCK_CONST_METHOD0(GetPassphraseTime, base::Time()); |
| 113 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time()); | 113 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time()); |
| 114 | 114 |
| 115 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); | 115 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); |
| 116 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, | 116 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, |
| 117 PassphraseType type)); | 117 PassphraseType type)); |
| 118 |
| 119 MOCK_METHOD0(GetSessionModelAssociator, |
| 120 browser_sync::SessionModelAssociator*()); |
| 118 }; | 121 }; |
| 119 | 122 |
| 120 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 123 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
| OLD | NEW |