Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1517)

Side by Side Diff: chrome/browser/sync/profile_sync_components_factory_mock.h

Issue 272043002: Invoke AttachmentUploader and update AttachmentIds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android build Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_COMPONENTS_FACTORY_MOCK_H__ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/sync/profile_sync_components_factory.h" 9 #include "chrome/browser/sync/profile_sync_components_factory.h"
10 #include "chrome/browser/sync/profile_sync_service.h" 10 #include "chrome/browser/sync/profile_sync_service.h"
(...skipping 27 matching lines...) Expand all
38 browser_sync::FailedDataTypesHandler* 38 browser_sync::FailedDataTypesHandler*
39 failed_datatypes_handler)); 39 failed_datatypes_handler));
40 MOCK_METHOD4(CreateSyncBackendHost, 40 MOCK_METHOD4(CreateSyncBackendHost,
41 browser_sync::SyncBackendHost*( 41 browser_sync::SyncBackendHost*(
42 const std::string& name, 42 const std::string& name,
43 Profile* profile, 43 Profile* profile,
44 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs, 44 const base::WeakPtr<sync_driver::SyncPrefs>& sync_prefs,
45 const base::FilePath& sync_folder)); 45 const base::FilePath& sync_folder));
46 MOCK_METHOD1(GetSyncableServiceForType, 46 MOCK_METHOD1(GetSyncableServiceForType,
47 base::WeakPtr<syncer::SyncableService>(syncer::ModelType)); 47 base::WeakPtr<syncer::SyncableService>(syncer::ModelType));
48 virtual scoped_ptr<syncer::AttachmentStore> 48 virtual scoped_ptr<syncer::AttachmentService> CreateAttachmentService(
49 CreateCustomAttachmentStoreForType(syncer::ModelType type) OVERRIDE; 49 syncer::AttachmentService::Delegate* delegate) OVERRIDE;
50 MOCK_METHOD2(CreateBookmarkSyncComponents, 50 MOCK_METHOD2(CreateBookmarkSyncComponents,
51 SyncComponents(ProfileSyncService* profile_sync_service, 51 SyncComponents(ProfileSyncService* profile_sync_service,
52 browser_sync::DataTypeErrorHandler* error_handler)); 52 browser_sync::DataTypeErrorHandler* error_handler));
53 #if defined(ENABLE_THEMES) 53 #if defined(ENABLE_THEMES)
54 MOCK_METHOD2(CreateThemeSyncComponents, 54 MOCK_METHOD2(CreateThemeSyncComponents,
55 SyncComponents(ProfileSyncService* profile_sync_service, 55 SyncComponents(ProfileSyncService* profile_sync_service,
56 browser_sync::DataTypeErrorHandler* error_handler)); 56 browser_sync::DataTypeErrorHandler* error_handler));
57 #endif 57 #endif
58 MOCK_METHOD3(CreateTypedUrlSyncComponents, 58 MOCK_METHOD3(CreateTypedUrlSyncComponents,
59 SyncComponents( 59 SyncComponents(
60 ProfileSyncService* profile_sync_service, 60 ProfileSyncService* profile_sync_service,
61 history::HistoryBackend* history_backend, 61 history::HistoryBackend* history_backend,
62 browser_sync::DataTypeErrorHandler* error_handler)); 62 browser_sync::DataTypeErrorHandler* error_handler));
63 63
64 private: 64 private:
65 SyncComponents MakeSyncComponents(); 65 SyncComponents MakeSyncComponents();
66 66
67 scoped_ptr<browser_sync::AssociatorInterface> model_associator_; 67 scoped_ptr<browser_sync::AssociatorInterface> model_associator_;
68 scoped_ptr<browser_sync::ChangeProcessor> change_processor_; 68 scoped_ptr<browser_sync::ChangeProcessor> change_processor_;
69 }; 69 };
70 70
71 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__ 71 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_COMPONENTS_FACTORY_MOCK_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698