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

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: Fred's comments Created 8 years, 4 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 int sync_server_port, 60 int sync_server_port,
61 bool use_ssl, 61 bool use_ssl,
62 const scoped_refptr<base::TaskRunner>& blocking_task_runner, 62 const scoped_refptr<base::TaskRunner>& blocking_task_runner,
63 scoped_ptr<HttpPostProviderFactory> post_factory, 63 scoped_ptr<HttpPostProviderFactory> post_factory,
64 const std::vector<ModelSafeWorker*>& workers, 64 const std::vector<ModelSafeWorker*>& workers,
65 ExtensionsActivityMonitor* extensions_activity_monitor, 65 ExtensionsActivityMonitor* extensions_activity_monitor,
66 ChangeDelegate* change_delegate, 66 ChangeDelegate* change_delegate,
67 const SyncCredentials& credentials, 67 const SyncCredentials& credentials,
68 scoped_ptr<SyncNotifier> sync_notifier, 68 scoped_ptr<SyncNotifier> sync_notifier,
69 const std::string& restored_key_for_bootstrapping, 69 const std::string& restored_key_for_bootstrapping,
70 bool keystore_encryption_enabled,
70 scoped_ptr<InternalComponentsFactory> internal_components_factory, 71 scoped_ptr<InternalComponentsFactory> internal_components_factory,
71 Encryptor* encryptor, 72 Encryptor* encryptor,
72 UnrecoverableErrorHandler* unrecoverable_error_handler, 73 UnrecoverableErrorHandler* unrecoverable_error_handler,
73 ReportUnrecoverableErrorFunction 74 ReportUnrecoverableErrorFunction
74 report_unrecoverable_error_function) OVERRIDE; 75 report_unrecoverable_error_function) OVERRIDE;
75 virtual void ThrowUnrecoverableError() OVERRIDE; 76 virtual void ThrowUnrecoverableError() OVERRIDE;
76 virtual ModelTypeSet InitialSyncEndedTypes() OVERRIDE; 77 virtual ModelTypeSet InitialSyncEndedTypes() OVERRIDE;
77 virtual ModelTypeSet GetTypesWithEmptyProgressMarkerToken( 78 virtual ModelTypeSet GetTypesWithEmptyProgressMarkerToken(
78 ModelTypeSet types) OVERRIDE; 79 ModelTypeSet types) OVERRIDE;
79 virtual bool PurgePartiallySyncedTypes() OVERRIDE; 80 virtual bool PurgePartiallySyncedTypes() OVERRIDE;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 125
125 // For StopSyncingForShutdown's callback. 126 // For StopSyncingForShutdown's callback.
126 MessageLoop* sync_loop_; 127 MessageLoop* sync_loop_;
127 128
128 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager); 129 DISALLOW_COPY_AND_ASSIGN(FakeSyncManager);
129 }; 130 };
130 131
131 } // namespace syncer 132 } // namespace syncer
132 133
133 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_ 134 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698