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

Side by Side Diff: chrome/browser/sync/test/integration/sync_test.h

Issue 8919021: [Sync] Rename ModelEnumSet to ModelTypeSet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // only if ServerSupportsNotificationControl() returned true. 147 // only if ServerSupportsNotificationControl() returned true.
148 void DisableNotifications(); 148 void DisableNotifications();
149 149
150 // Enable notifications on the server. This operation is available 150 // Enable notifications on the server. This operation is available
151 // only if ServerSupportsNotificationControl() returned true. 151 // only if ServerSupportsNotificationControl() returned true.
152 void EnableNotifications(); 152 void EnableNotifications();
153 153
154 // Trigger a notification to be sent to all clients. This operation 154 // Trigger a notification to be sent to all clients. This operation
155 // is available only if ServerSupportsNotificationControl() returned 155 // is available only if ServerSupportsNotificationControl() returned
156 // true. 156 // true.
157 void TriggerNotification(syncable::ModelEnumSet changed_types); 157 void TriggerNotification(syncable::ModelTypeSet changed_types);
158 158
159 // Returns true if the server being used supports injecting errors. 159 // Returns true if the server being used supports injecting errors.
160 bool ServerSupportsErrorTriggering() const; 160 bool ServerSupportsErrorTriggering() const;
161 161
162 // Triggers a migration for one or more datatypes, and waits 162 // Triggers a migration for one or more datatypes, and waits
163 // for the server to complete it. This operation is available 163 // for the server to complete it. This operation is available
164 // only if ServerSupportsErrorTriggering() returned true. 164 // only if ServerSupportsErrorTriggering() returned true.
165 void TriggerMigrationDoneError(syncable::ModelEnumSet model_types); 165 void TriggerMigrationDoneError(syncable::ModelTypeSet model_types);
166 166
167 // Triggers the server to set its birthday to a random value thereby 167 // Triggers the server to set its birthday to a random value thereby
168 // the server would return a birthday error on next sync. 168 // the server would return a birthday error on next sync.
169 void TriggerBirthdayError(); 169 void TriggerBirthdayError();
170 170
171 // Triggers a transient error on the server. Note the server will stay in 171 // Triggers a transient error on the server. Note the server will stay in
172 // this state until shut down. 172 // this state until shut down.
173 void TriggerTransientError(); 173 void TriggerTransientError();
174 174
175 // Triggers a sync error on the server. 175 // Triggers a sync error on the server.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 313
314 // The URLFetcherImplFactory instance used to instantiate |fake_factory_|. 314 // The URLFetcherImplFactory instance used to instantiate |fake_factory_|.
315 scoped_ptr<URLFetcherImplFactory> factory_; 315 scoped_ptr<URLFetcherImplFactory> factory_;
316 316
317 DISALLOW_COPY_AND_ASSIGN(SyncTest); 317 DISALLOW_COPY_AND_ASSIGN(SyncTest);
318 }; 318 };
319 319
320 DISABLE_RUNNABLE_METHOD_REFCOUNT(SyncTest); 320 DISABLE_RUNNABLE_METHOD_REFCOUNT(SyncTest);
321 321
322 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ 322 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/migration_errors_test.cc ('k') | chrome/browser/sync/test/integration/sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698