| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "base/string16.h" | 10 #include "base/string16.h" |
| 11 #include "chrome/browser/profile.h" | 11 #include "chrome/browser/profile.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(EnableForUser, void()); | |
| 24 MOCK_METHOD0(DisableForUser, void()); | 23 MOCK_METHOD0(DisableForUser, void()); |
| 25 MOCK_METHOD0(OnBackendInitialized, void()); | 24 MOCK_METHOD0(OnBackendInitialized, void()); |
| 26 MOCK_METHOD0(OnSyncCycleCompleted, void()); | 25 MOCK_METHOD0(OnSyncCycleCompleted, void()); |
| 27 MOCK_METHOD0(OnAuthError, void()); | 26 MOCK_METHOD0(OnAuthError, void()); |
| 28 MOCK_METHOD3(OnUserSubmittedAuth, | 27 MOCK_METHOD3(OnUserSubmittedAuth, |
| 29 void(const std::string& username, | 28 void(const std::string& username, |
| 30 const std::string& password, | 29 const std::string& password, |
| 31 const std::string& captcha)); | 30 const std::string& captcha)); |
| 32 MOCK_METHOD0(OnUserCancelledDialog, void()); | 31 MOCK_METHOD0(OnUserCancelledDialog, void()); |
| 33 MOCK_CONST_METHOD0(GetAuthenticatedUsername, string16()); | 32 MOCK_CONST_METHOD0(GetAuthenticatedUsername, string16()); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 48 | 47 |
| 49 MOCK_METHOD1(ChangePreferredDataTypes, | 48 MOCK_METHOD1(ChangePreferredDataTypes, |
| 50 void(const syncable::ModelTypeSet& preferred_types)); | 49 void(const syncable::ModelTypeSet& preferred_types)); |
| 51 MOCK_CONST_METHOD1(GetPreferredDataTypes, | 50 MOCK_CONST_METHOD1(GetPreferredDataTypes, |
| 52 void(syncable::ModelTypeSet* preferred_types)); | 51 void(syncable::ModelTypeSet* preferred_types)); |
| 53 MOCK_CONST_METHOD1(GetRegisteredDataTypes, | 52 MOCK_CONST_METHOD1(GetRegisteredDataTypes, |
| 54 void(syncable::ModelTypeSet* registered_types)); | 53 void(syncable::ModelTypeSet* registered_types)); |
| 55 }; | 54 }; |
| 56 | 55 |
| 57 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ | 56 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_MOCK_H_ |
| OLD | NEW |