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

Side by Side Diff: chrome/test/live_sync/live_sync_test.h

Issue 7655055: [Sync] Make BackendMigrator not wait for full sync cycles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address more comments Created 9 years, 3 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) 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_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ 5 #ifndef CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_
6 #define CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ 6 #define CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/test/base/in_process_browser_test.h" 9 #include "chrome/test/base/in_process_browser_test.h"
10 10
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 // Checks if the datatype |type| is encrypted for profile |index|. 136 // Checks if the datatype |type| is encrypted for profile |index|.
137 bool IsEncrypted(int index, syncable::ModelType type); 137 bool IsEncrypted(int index, syncable::ModelType type);
138 138
139 // Blocks until all sync clients have completed their mutual sync cycles. 139 // Blocks until all sync clients have completed their mutual sync cycles.
140 // Returns true if a quiescent state was successfully reached. 140 // Returns true if a quiescent state was successfully reached.
141 bool AwaitQuiescence(); 141 bool AwaitQuiescence();
142 142
143 // Returns true if the server being used supports controlling 143 // Returns true if the server being used supports controlling
144 // notifications. 144 // notifications.
145 bool ServerSupportsNotificationControl(); 145 bool ServerSupportsNotificationControl() const;
146 146
147 // Disable notifications on the server. This operation is available 147 // Disable notifications on the server. This operation is available
148 // only if ServerSupportsNotificationControl() returned true. 148 // only if ServerSupportsNotificationControl() returned true.
149 void DisableNotifications(); 149 void DisableNotifications();
150 150
151 // Enable notifications on the server. This operation is available
152 // only if ServerSupportsNotificationControl() returned true.
153 void EnableNotifications();
154
151 // Trigger a notification to be sent to all clients. This operation 155 // Trigger a notification to be sent to all clients. This operation
152 // is available only if ServerSupportsNotificationControl() returned 156 // is available only if ServerSupportsNotificationControl() returned
153 // true. 157 // true.
154 void TriggerNotification(const syncable::ModelTypeSet& changed_types); 158 void TriggerNotification(const syncable::ModelTypeSet& changed_types);
155 159
156 // Returns true if the server being used supports injecting errors. 160 // Returns true if the server being used supports injecting errors.
157 bool ServerSupportsErrorTriggering(); 161 bool ServerSupportsErrorTriggering() const;
158 162
159 // Triggers a migration for one or more datatypes, and waits 163 // Triggers a migration for one or more datatypes, and waits
160 // for the server to complete it. This operation is available 164 // for the server to complete it. This operation is available
161 // only if ServerSupportsErrorTriggering() returned true. 165 // only if ServerSupportsErrorTriggering() returned true.
162 void TriggerMigrationDoneError(const syncable::ModelTypeSet& model_types); 166 void TriggerMigrationDoneError(const syncable::ModelTypeSet& model_types);
163 167
164 // Triggers the server to set its birthday to a random value thereby 168 // Triggers the server to set its birthday to a random value thereby
165 // the server would return a birthday error on next sync. 169 // the server would return a birthday error on next sync.
166 void TriggerBirthdayError(); 170 void TriggerBirthdayError();
167 171
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 308
305 // The URLFetcherFactory instance used to instantiate |fake_factory_|. 309 // The URLFetcherFactory instance used to instantiate |fake_factory_|.
306 scoped_ptr<URLFetcherFactory> factory_; 310 scoped_ptr<URLFetcherFactory> factory_;
307 311
308 DISALLOW_COPY_AND_ASSIGN(LiveSyncTest); 312 DISALLOW_COPY_AND_ASSIGN(LiveSyncTest);
309 }; 313 };
310 314
311 DISABLE_RUNNABLE_METHOD_REFCOUNT(LiveSyncTest); 315 DISABLE_RUNNABLE_METHOD_REFCOUNT(LiveSyncTest);
312 316
313 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ 317 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/test_profile_sync_service.cc ('k') | chrome/test/live_sync/live_sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698