OLD | NEW |
1 // Copyright (c) 2010 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 |
11 #include "base/string16.h" | 11 #include "base/string16.h" |
12 #include "chrome/browser/sync/glue/change_processor.h" | 12 #include "chrome/browser/sync/glue/change_processor.h" |
13 #include "chrome/browser/sync/glue/data_type_controller.h" | 13 #include "chrome/browser/sync/glue/data_type_controller.h" |
14 #include "chrome/browser/sync/profile_sync_service.h" | 14 #include "chrome/browser/sync/profile_sync_service.h" |
15 #include "chrome/browser/sync/syncable/model_type.h" | 15 #include "chrome/browser/sync/syncable/model_type.h" |
16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
17 | 17 |
18 class ProfileSyncServiceMock : public ProfileSyncService { | 18 class ProfileSyncServiceMock : public ProfileSyncService { |
19 public: | 19 public: |
20 ProfileSyncServiceMock() {} | 20 ProfileSyncServiceMock(); |
21 virtual ~ProfileSyncServiceMock() {} | 21 virtual ~ProfileSyncServiceMock(); |
22 | 22 |
23 MOCK_METHOD0(DisableForUser, void()); | 23 MOCK_METHOD0(DisableForUser, void()); |
24 MOCK_METHOD0(OnBackendInitialized, void()); | 24 MOCK_METHOD0(OnBackendInitialized, void()); |
25 MOCK_METHOD0(OnSyncCycleCompleted, void()); | 25 MOCK_METHOD0(OnSyncCycleCompleted, void()); |
26 MOCK_METHOD0(OnAuthError, void()); | 26 MOCK_METHOD0(OnAuthError, void()); |
27 MOCK_METHOD3(OnUserSubmittedAuth, | 27 MOCK_METHOD3(OnUserSubmittedAuth, |
28 void(const std::string& username, | 28 void(const std::string& username, |
29 const std::string& password, | 29 const std::string& password, |
30 const std::string& captcha)); | 30 const std::string& captcha)); |
31 MOCK_METHOD0(OnUserCancelledDialog, void()); | 31 MOCK_METHOD0(OnUserCancelledDialog, void()); |
(...skipping 20 matching lines...) Expand all Loading... |
52 MOCK_CONST_METHOD1(GetRegisteredDataTypes, | 52 MOCK_CONST_METHOD1(GetRegisteredDataTypes, |
53 void(syncable::ModelTypeSet* registered_types)); | 53 void(syncable::ModelTypeSet* registered_types)); |
54 | 54 |
55 MOCK_METHOD0(QueryDetailedSyncStatus, | 55 MOCK_METHOD0(QueryDetailedSyncStatus, |
56 browser_sync::SyncBackendHost::Status()); | 56 browser_sync::SyncBackendHost::Status()); |
57 MOCK_CONST_METHOD0(GetLastSyncedTimeString, string16()); | 57 MOCK_CONST_METHOD0(GetLastSyncedTimeString, string16()); |
58 MOCK_CONST_METHOD0(unrecoverable_error_detected, bool()); | 58 MOCK_CONST_METHOD0(unrecoverable_error_detected, bool()); |
59 }; | 59 }; |
60 | 60 |
61 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 61 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
OLD | NEW |