| 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_FACTORY_MOCK_H__ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ |
| 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/sync/profile_sync_service.h" | 10 #include "chrome/browser/sync/profile_sync_service.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 browser_sync::AssociatorInterface* bookmark_model_associator, | 23 browser_sync::AssociatorInterface* bookmark_model_associator, |
| 24 browser_sync::ChangeProcessor* bookmark_change_processor); | 24 browser_sync::ChangeProcessor* bookmark_change_processor); |
| 25 virtual ~ProfileSyncFactoryMock(); | 25 virtual ~ProfileSyncFactoryMock(); |
| 26 | 26 |
| 27 MOCK_METHOD1(CreateProfileSyncService, | 27 MOCK_METHOD1(CreateProfileSyncService, |
| 28 ProfileSyncService*(const std::string&)); | 28 ProfileSyncService*(const std::string&)); |
| 29 MOCK_METHOD1(RegisterDataTypes, void(ProfileSyncService*)); | 29 MOCK_METHOD1(RegisterDataTypes, void(ProfileSyncService*)); |
| 30 MOCK_METHOD2(CreateDataTypeManager, | 30 MOCK_METHOD2(CreateDataTypeManager, |
| 31 browser_sync::DataTypeManager*( | 31 browser_sync::DataTypeManager*( |
| 32 browser_sync::SyncBackendHost*, | 32 browser_sync::SyncBackendHost*, |
| 33 const browser_sync::DataTypeController::TypeMap&)); | 33 const browser_sync::DataTypeController::TypeMap*)); |
| 34 MOCK_METHOD2(CreateAppSyncComponents, | 34 MOCK_METHOD2(CreateAppSyncComponents, |
| 35 SyncComponents(ProfileSyncService* profile_sync_service, | 35 SyncComponents(ProfileSyncService* profile_sync_service, |
| 36 browser_sync::UnrecoverableErrorHandler* error_handler)); | 36 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 37 MOCK_METHOD4(CreateAutofillSyncComponents, | 37 MOCK_METHOD4(CreateAutofillSyncComponents, |
| 38 SyncComponents( | 38 SyncComponents( |
| 39 ProfileSyncService* profile_sync_service, | 39 ProfileSyncService* profile_sync_service, |
| 40 WebDatabase* web_database, | 40 WebDatabase* web_database, |
| 41 PersonalDataManager* personal_data, | 41 PersonalDataManager* personal_data, |
| 42 browser_sync::UnrecoverableErrorHandler* error_handler)); | 42 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 43 MOCK_METHOD4(CreateAutofillProfileSyncComponents, | 43 MOCK_METHOD4(CreateAutofillProfileSyncComponents, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 73 browser_sync::UnrecoverableErrorHandler* error_handler)); | 73 browser_sync::UnrecoverableErrorHandler* error_handler)); |
| 74 | 74 |
| 75 private: | 75 private: |
| 76 SyncComponents MakeBookmarkSyncComponents(); | 76 SyncComponents MakeBookmarkSyncComponents(); |
| 77 | 77 |
| 78 scoped_ptr<browser_sync::AssociatorInterface> bookmark_model_associator_; | 78 scoped_ptr<browser_sync::AssociatorInterface> bookmark_model_associator_; |
| 79 scoped_ptr<browser_sync::ChangeProcessor> bookmark_change_processor_; | 79 scoped_ptr<browser_sync::ChangeProcessor> bookmark_change_processor_; |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ | 82 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_FACTORY_MOCK_H__ |
| OLD | NEW |