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 19 matching lines...) Expand all Loading... |
30 MOCK_METHOD4(OnUserSubmittedAuth, | 30 MOCK_METHOD4(OnUserSubmittedAuth, |
31 void(const std::string& username, | 31 void(const std::string& username, |
32 const std::string& password, | 32 const std::string& password, |
33 const std::string& captcha, | 33 const std::string& captcha, |
34 const std::string& access_code)); | 34 const std::string& access_code)); |
35 MOCK_METHOD0(OnUserCancelledDialog, void()); | 35 MOCK_METHOD0(OnUserCancelledDialog, void()); |
36 MOCK_CONST_METHOD0(GetAuthenticatedUsername, string16()); | 36 MOCK_CONST_METHOD0(GetAuthenticatedUsername, string16()); |
37 MOCK_METHOD2(OnUnrecoverableError, | 37 MOCK_METHOD2(OnUnrecoverableError, |
38 void(const tracked_objects::Location& location, | 38 void(const tracked_objects::Location& location, |
39 const std::string& message)); | 39 const std::string& message)); |
40 MOCK_METHOD2(ActivateDataType, | 40 MOCK_METHOD3(ActivateDataType, |
41 void(browser_sync::DataTypeController* data_type_controller, | 41 void(syncable::ModelType, browser_sync::ModelSafeGroup, |
42 browser_sync::ChangeProcessor* change_processor)); | 42 browser_sync::ChangeProcessor*)); |
43 MOCK_METHOD2(DeactivateDataType, | 43 MOCK_METHOD1(DeactivateDataType, void(syncable::ModelType)); |
44 void(browser_sync::DataTypeController* data_type_controller, | |
45 browser_sync::ChangeProcessor* change_processor)); | |
46 | 44 |
47 MOCK_METHOD0(InitializeBackend, void()); | 45 MOCK_METHOD0(InitializeBackend, void()); |
48 MOCK_METHOD1(AddObserver, void(Observer*)); | 46 MOCK_METHOD1(AddObserver, void(Observer*)); |
49 MOCK_METHOD1(RemoveObserver, void(Observer*)); | 47 MOCK_METHOD1(RemoveObserver, void(Observer*)); |
50 MOCK_METHOD0(GetJsController, base::WeakPtr<browser_sync::JsController>()); | 48 MOCK_METHOD0(GetJsController, base::WeakPtr<browser_sync::JsController>()); |
51 MOCK_CONST_METHOD0(HasSyncSetupCompleted, bool()); | 49 MOCK_CONST_METHOD0(HasSyncSetupCompleted, bool()); |
52 | 50 |
53 MOCK_METHOD1(ChangePreferredDataTypes, | 51 MOCK_METHOD1(ChangePreferredDataTypes, |
54 void(const syncable::ModelTypeSet& preferred_types)); | 52 void(const syncable::ModelTypeSet& preferred_types)); |
55 MOCK_CONST_METHOD1(GetPreferredDataTypes, | 53 MOCK_CONST_METHOD1(GetPreferredDataTypes, |
56 void(syncable::ModelTypeSet* preferred_types)); | 54 void(syncable::ModelTypeSet* preferred_types)); |
57 MOCK_CONST_METHOD1(GetRegisteredDataTypes, | 55 MOCK_CONST_METHOD1(GetRegisteredDataTypes, |
58 void(syncable::ModelTypeSet* registered_types)); | 56 void(syncable::ModelTypeSet* registered_types)); |
59 MOCK_CONST_METHOD0(GetLastSessionSnapshot, | 57 MOCK_CONST_METHOD0(GetLastSessionSnapshot, |
60 const browser_sync::sessions::SyncSessionSnapshot*()); | 58 const browser_sync::sessions::SyncSessionSnapshot*()); |
61 | 59 |
62 MOCK_METHOD0(QueryDetailedSyncStatus, | 60 MOCK_METHOD0(QueryDetailedSyncStatus, |
63 browser_sync::SyncBackendHost::Status()); | 61 browser_sync::SyncBackendHost::Status()); |
64 MOCK_CONST_METHOD0(GetLastSyncedTimeString, string16()); | 62 MOCK_CONST_METHOD0(GetLastSyncedTimeString, string16()); |
65 MOCK_CONST_METHOD0(unrecoverable_error_detected, bool()); | 63 MOCK_CONST_METHOD0(unrecoverable_error_detected, bool()); |
66 }; | 64 }; |
67 | 65 |
68 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 66 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
OLD | NEW |