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

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

Issue 10455012: [Sync] Add support for performing a GetKey on startup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 bool keystore_encryption_enabled,
67 TestingMode testing_mode, 68 TestingMode testing_mode,
68 syncer::Encryptor* encryptor, 69 syncer::Encryptor* encryptor,
69 syncer::UnrecoverableErrorHandler* unrecoverable_error_handler, 70 syncer::UnrecoverableErrorHandler* unrecoverable_error_handler,
70 syncer::ReportUnrecoverableErrorFunction 71 syncer::ReportUnrecoverableErrorFunction
71 report_unrecoverable_error_function) OVERRIDE; 72 report_unrecoverable_error_function) OVERRIDE;
72 virtual void ThrowUnrecoverableError() OVERRIDE; 73 virtual void ThrowUnrecoverableError() OVERRIDE;
73 virtual syncer::ModelTypeSet InitialSyncEndedTypes() OVERRIDE; 74 virtual syncer::ModelTypeSet InitialSyncEndedTypes() OVERRIDE;
74 virtual syncer::ModelTypeSet GetTypesWithEmptyProgressMarkerToken( 75 virtual syncer::ModelTypeSet GetTypesWithEmptyProgressMarkerToken(
75 syncer::ModelTypeSet types) OVERRIDE; 76 syncer::ModelTypeSet types) OVERRIDE;
76 virtual bool PurgePartiallySyncedTypes() OVERRIDE; 77 virtual bool PurgePartiallySyncedTypes() OVERRIDE;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 121
121 // For StopSyncingForShutdown's callback. 122 // For StopSyncingForShutdown's callback.
122 MessageLoop* sync_loop_; 123 MessageLoop* sync_loop_;
123 124
124 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); 125 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager);
125 }; 126 };
126 127
127 } // namespace syncer 128 } // namespace syncer
128 129
129 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ 130 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698