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

Side by Side Diff: sync/internal_api/public/test/fake_sync_manager.h

Issue 10701046: sync: Remove SyncManager::TestingMode in favour of InternalComponentsFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: now with more scope Created 8 years, 5 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 | Annotate | Revision Log
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 SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_
6 #define SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "sync/internal_api/public/sync_manager.h" 10 #include "sync/internal_api/public/sync_manager.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 const scoped_refptr<base::TaskRunner>& blocking_task_runner, 57 const scoped_refptr<base::TaskRunner>& blocking_task_runner,
58 scoped_ptr<HttpPostProviderFactory> post_factory, 58 scoped_ptr<HttpPostProviderFactory> post_factory,
59 const syncer::ModelSafeRoutingInfo& model_safe_routing_info, 59 const syncer::ModelSafeRoutingInfo& model_safe_routing_info,
60 const std::vector<syncer::ModelSafeWorker*>& workers, 60 const std::vector<syncer::ModelSafeWorker*>& workers,
61 syncer::ExtensionsActivityMonitor* 61 syncer::ExtensionsActivityMonitor*
62 extensions_activity_monitor, 62 extensions_activity_monitor,
63 ChangeDelegate* change_delegate, 63 ChangeDelegate* change_delegate,
64 const SyncCredentials& credentials, 64 const SyncCredentials& credentials,
65 scoped_ptr<syncer::SyncNotifier> sync_notifier, 65 scoped_ptr<syncer::SyncNotifier> sync_notifier,
66 const std::string& restored_key_for_bootstrapping, 66 const std::string& restored_key_for_bootstrapping,
67 TestingMode testing_mode, 67 scoped_ptr<InternalComponentsFactory> internal_components_factory,
68 syncer::Encryptor* encryptor, 68 syncer::Encryptor* encryptor,
69 syncer::UnrecoverableErrorHandler* unrecoverable_error_handler, 69 syncer::UnrecoverableErrorHandler* unrecoverable_error_handler,
70 syncer::ReportUnrecoverableErrorFunction 70 syncer::ReportUnrecoverableErrorFunction
71 report_unrecoverable_error_function) OVERRIDE; 71 report_unrecoverable_error_function) OVERRIDE;
72 virtual void ThrowUnrecoverableError() OVERRIDE; 72 virtual void ThrowUnrecoverableError() OVERRIDE;
73 virtual syncer::ModelTypeSet InitialSyncEndedTypes() OVERRIDE; 73 virtual syncer::ModelTypeSet InitialSyncEndedTypes() OVERRIDE;
74 virtual syncer::ModelTypeSet GetTypesWithEmptyProgressMarkerToken( 74 virtual syncer::ModelTypeSet GetTypesWithEmptyProgressMarkerToken(
75 syncer::ModelTypeSet types) OVERRIDE; 75 syncer::ModelTypeSet types) OVERRIDE;
76 virtual bool PurgePartiallySyncedTypes() OVERRIDE; 76 virtual bool PurgePartiallySyncedTypes() OVERRIDE;
77 virtual void UpdateCredentials(const SyncCredentials& credentials) OVERRIDE; 77 virtual void UpdateCredentials(const SyncCredentials& credentials) OVERRIDE;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 120
121 // For StopSyncingForShutdown's callback. 121 // For StopSyncingForShutdown's callback.
122 MessageLoop* sync_loop_; 122 MessageLoop* sync_loop_;
123 123
124 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); 124 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager);
125 }; 125 };
126 126
127 } // namespace syncer 127 } // namespace syncer
128 128
129 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ 129 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698