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