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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_METHOD1(IsDataTypeControllerRunning, bool(syncer::ModelType)); | 96 MOCK_CONST_METHOD1(IsDataTypeControllerRunning, bool(syncer::ModelType)); |
97 | 97 |
98 // DataTypeManagerObserver mocks. | 98 // DataTypeManagerObserver mocks. |
99 MOCK_METHOD0(OnConfigureBlocked, void()); | 99 MOCK_METHOD0(OnConfigureBlocked, void()); |
100 MOCK_METHOD1(OnConfigureDone, | 100 MOCK_METHOD1(OnConfigureDone, |
101 void(const sync_driver::DataTypeManager::ConfigureResult&)); | 101 void(const sync_driver::DataTypeManager::ConfigureResult&)); |
102 MOCK_METHOD0(OnConfigureRetry, void()); | |
103 MOCK_METHOD0(OnConfigureStart, void()); | 102 MOCK_METHOD0(OnConfigureStart, void()); |
104 | 103 |
105 MOCK_METHOD0(IsSyncEnabledAndLoggedIn, bool()); | 104 MOCK_METHOD0(IsSyncEnabledAndLoggedIn, bool()); |
106 MOCK_CONST_METHOD0(IsManaged, bool()); | 105 MOCK_CONST_METHOD0(IsManaged, bool()); |
107 MOCK_METHOD0(IsOAuthRefreshTokenAvailable, bool()); | 106 MOCK_METHOD0(IsOAuthRefreshTokenAvailable, bool()); |
108 | 107 |
109 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); | 108 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); |
110 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); | 109 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); |
111 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); | 110 MOCK_CONST_METHOD0(IsUsingSecondaryPassphrase, bool()); |
112 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType()); | 111 MOCK_CONST_METHOD0(GetPassphraseType, syncer::PassphraseType()); |
113 MOCK_CONST_METHOD0(GetPassphraseTime, base::Time()); | 112 MOCK_CONST_METHOD0(GetPassphraseTime, base::Time()); |
114 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time()); | 113 MOCK_CONST_METHOD0(GetExplicitPassphraseTime, base::Time()); |
115 | 114 |
116 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); | 115 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); |
117 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, | 116 MOCK_METHOD2(SetEncryptionPassphrase, void(const std::string& passphrase, |
118 PassphraseType type)); | 117 PassphraseType type)); |
119 | 118 |
120 MOCK_METHOD1(StartUpSlowBackendComponents, void(BackendMode)); | 119 MOCK_METHOD1(StartUpSlowBackendComponents, void(BackendMode)); |
121 }; | 120 }; |
122 | 121 |
123 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 122 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
OLD | NEW |