| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 MOCK_METHOD4(OnUserSubmittedAuth, | 31 MOCK_METHOD4(OnUserSubmittedAuth, |
| 32 void(const std::string& username, | 32 void(const std::string& username, |
| 33 const std::string& password, | 33 const std::string& password, |
| 34 const std::string& captcha, | 34 const std::string& captcha, |
| 35 const std::string& access_code)); | 35 const std::string& access_code)); |
| 36 MOCK_METHOD0(OnUserCancelledDialog, void()); | 36 MOCK_METHOD0(OnUserCancelledDialog, void()); |
| 37 MOCK_CONST_METHOD0(GetAuthenticatedUsername, string16()); | 37 MOCK_CONST_METHOD0(GetAuthenticatedUsername, string16()); |
| 38 MOCK_METHOD2(OnUnrecoverableError, | 38 MOCK_METHOD2(OnUnrecoverableError, |
| 39 void(const tracked_objects::Location& location, | 39 void(const tracked_objects::Location& location, |
| 40 const std::string& message)); | 40 const std::string& message)); |
| 41 MOCK_CONST_METHOD0(GetUserShare, sync_api::UserShare*()); | |
| 42 MOCK_METHOD3(ActivateDataType, | 41 MOCK_METHOD3(ActivateDataType, |
| 43 void(syncable::ModelType, browser_sync::ModelSafeGroup, | 42 void(syncable::ModelType, browser_sync::ModelSafeGroup, |
| 44 browser_sync::ChangeProcessor*)); | 43 browser_sync::ChangeProcessor*)); |
| 45 MOCK_METHOD1(DeactivateDataType, void(syncable::ModelType)); | 44 MOCK_METHOD1(DeactivateDataType, void(syncable::ModelType)); |
| 46 | 45 |
| 47 MOCK_METHOD0(InitializeBackend, void()); | 46 MOCK_METHOD0(InitializeBackend, void()); |
| 48 MOCK_METHOD1(AddObserver, void(Observer*)); | 47 MOCK_METHOD1(AddObserver, void(Observer*)); |
| 49 MOCK_METHOD1(RemoveObserver, void(Observer*)); | 48 MOCK_METHOD1(RemoveObserver, void(Observer*)); |
| 50 MOCK_METHOD0(GetJsController, base::WeakPtr<browser_sync::JsController>()); | 49 MOCK_METHOD0(GetJsController, base::WeakPtr<browser_sync::JsController>()); |
| 51 MOCK_CONST_METHOD0(HasSyncSetupCompleted, bool()); | 50 MOCK_CONST_METHOD0(HasSyncSetupCompleted, bool()); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 64 MOCK_CONST_METHOD0(GetLastSyncedTimeString, string16()); | 63 MOCK_CONST_METHOD0(GetLastSyncedTimeString, string16()); |
| 65 MOCK_CONST_METHOD0(unrecoverable_error_detected, bool()); | 64 MOCK_CONST_METHOD0(unrecoverable_error_detected, bool()); |
| 66 MOCK_METHOD1(OnActionableError, void( | 65 MOCK_METHOD1(OnActionableError, void( |
| 67 const browser_sync::SyncProtocolError&)); | 66 const browser_sync::SyncProtocolError&)); |
| 68 | 67 |
| 69 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); | 68 MOCK_CONST_METHOD0(IsPassphraseRequired, bool()); |
| 70 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); | 69 MOCK_CONST_METHOD0(IsPassphraseRequiredForDecryption, bool()); |
| 71 }; | 70 }; |
| 72 | 71 |
| 73 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 72 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
| OLD | NEW |