| 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 COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 5 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
| 6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 virtual ~ProfileSyncServiceMock(); | 34 virtual ~ProfileSyncServiceMock(); |
| 35 | 35 |
| 36 MOCK_METHOD5( | 36 MOCK_METHOD5( |
| 37 OnEngineInitialized, | 37 OnEngineInitialized, |
| 38 void(syncer::ModelTypeSet initial_types, | 38 void(syncer::ModelTypeSet initial_types, |
| 39 const syncer::WeakHandle<syncer::JsBackend>&, | 39 const syncer::WeakHandle<syncer::JsBackend>&, |
| 40 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&, | 40 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&, |
| 41 const std::string&, | 41 const std::string&, |
| 42 bool)); | 42 bool)); |
| 43 MOCK_METHOD0(OnSyncCycleCompleted, void()); | 43 MOCK_METHOD1(OnSyncCycleCompleted, void(const syncer::SyncCycleSnapshot&)); |
| 44 MOCK_METHOD2(OnUserChoseDatatypes, | 44 MOCK_METHOD2(OnUserChoseDatatypes, |
| 45 void(bool sync_everything, syncer::ModelTypeSet chosen_types)); | 45 void(bool sync_everything, syncer::ModelTypeSet chosen_types)); |
| 46 | 46 |
| 47 MOCK_METHOD2(OnUnrecoverableError, | 47 MOCK_METHOD2(OnUnrecoverableError, |
| 48 void(const tracked_objects::Location& location, | 48 void(const tracked_objects::Location& location, |
| 49 const std::string& message)); | 49 const std::string& message)); |
| 50 MOCK_CONST_METHOD0(GetUserShare, syncer::UserShare*()); | 50 MOCK_CONST_METHOD0(GetUserShare, syncer::UserShare*()); |
| 51 MOCK_METHOD0(RequestStart, void()); | 51 MOCK_METHOD0(RequestStart, void()); |
| 52 MOCK_METHOD1(RequestStop, void(ProfileSyncService::SyncStopDataFate)); | 52 MOCK_METHOD1(RequestStop, void(ProfileSyncService::SyncStopDataFate)); |
| 53 | 53 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); | 97 MOCK_METHOD1(SetDecryptionPassphrase, bool(const std::string& passphrase)); |
| 98 MOCK_METHOD2(SetEncryptionPassphrase, | 98 MOCK_METHOD2(SetEncryptionPassphrase, |
| 99 void(const std::string& passphrase, PassphraseType type)); | 99 void(const std::string& passphrase, PassphraseType type)); |
| 100 | 100 |
| 101 MOCK_METHOD0(OnSetupInProgressHandleDestroyed, void()); | 101 MOCK_METHOD0(OnSetupInProgressHandleDestroyed, void()); |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 } // namespace browser_sync | 104 } // namespace browser_sync |
| 105 | 105 |
| 106 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 106 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
| OLD | NEW |