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

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

Issue 10696087: [Sync] Move ModelType and related classes to 'syncer' namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort headers, update copyrights 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 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // closing and reopening all browser windows for the profile. 141 // closing and reopening all browser windows for the profile.
142 virtual void RestartSyncService(int index); 142 virtual void RestartSyncService(int index);
143 143
144 // Enable outgoing network connections for the given profile. 144 // Enable outgoing network connections for the given profile.
145 virtual void EnableNetwork(Profile* profile); 145 virtual void EnableNetwork(Profile* profile);
146 146
147 // Disable outgoing network connections for the given profile. 147 // Disable outgoing network connections for the given profile.
148 virtual void DisableNetwork(Profile* profile); 148 virtual void DisableNetwork(Profile* profile);
149 149
150 // Encrypts the datatype |type| for profile |index|. 150 // Encrypts the datatype |type| for profile |index|.
151 bool EnableEncryption(int index, syncable::ModelType type); 151 bool EnableEncryption(int index, syncer::ModelType type);
152 152
153 // Checks if the datatype |type| is encrypted for profile |index|. 153 // Checks if the datatype |type| is encrypted for profile |index|.
154 bool IsEncrypted(int index, syncable::ModelType type); 154 bool IsEncrypted(int index, syncer::ModelType type);
155 155
156 // Blocks until all sync clients have completed their mutual sync cycles. 156 // Blocks until all sync clients have completed their mutual sync cycles.
157 // Returns true if a quiescent state was successfully reached. 157 // Returns true if a quiescent state was successfully reached.
158 bool AwaitQuiescence(); 158 bool AwaitQuiescence();
159 159
160 // Returns true if the server being used supports controlling 160 // Returns true if the server being used supports controlling
161 // notifications. 161 // notifications.
162 bool ServerSupportsNotificationControl() const; 162 bool ServerSupportsNotificationControl() const;
163 163
164 // Disable notifications on the server. This operation is available 164 // Disable notifications on the server. This operation is available
165 // only if ServerSupportsNotificationControl() returned true. 165 // only if ServerSupportsNotificationControl() returned true.
166 void DisableNotifications(); 166 void DisableNotifications();
167 167
168 // Enable notifications on the server. This operation is available 168 // Enable notifications on the server. This operation is available
169 // only if ServerSupportsNotificationControl() returned true. 169 // only if ServerSupportsNotificationControl() returned true.
170 void EnableNotifications(); 170 void EnableNotifications();
171 171
172 // Trigger a notification to be sent to all clients. This operation 172 // Trigger a notification to be sent to all clients. This operation
173 // is available only if ServerSupportsNotificationControl() returned 173 // is available only if ServerSupportsNotificationControl() returned
174 // true. 174 // true.
175 void TriggerNotification(syncable::ModelTypeSet changed_types); 175 void TriggerNotification(syncer::ModelTypeSet changed_types);
176 176
177 // Returns true if the server being used supports injecting errors. 177 // Returns true if the server being used supports injecting errors.
178 bool ServerSupportsErrorTriggering() const; 178 bool ServerSupportsErrorTriggering() const;
179 179
180 // Triggers a migration for one or more datatypes, and waits 180 // Triggers a migration for one or more datatypes, and waits
181 // for the server to complete it. This operation is available 181 // for the server to complete it. This operation is available
182 // only if ServerSupportsErrorTriggering() returned true. 182 // only if ServerSupportsErrorTriggering() returned true.
183 void TriggerMigrationDoneError(syncable::ModelTypeSet model_types); 183 void TriggerMigrationDoneError(syncer::ModelTypeSet model_types);
184 184
185 // Triggers the server to set its birthday to a random value thereby 185 // Triggers the server to set its birthday to a random value thereby
186 // the server would return a birthday error on next sync. 186 // the server would return a birthday error on next sync.
187 void TriggerBirthdayError(); 187 void TriggerBirthdayError();
188 188
189 // Triggers a transient error on the server. Note the server will stay in 189 // Triggers a transient error on the server. Note the server will stay in
190 // this state until shut down. 190 // this state until shut down.
191 void TriggerTransientError(); 191 void TriggerTransientError();
192 192
193 // Triggers an auth error on the server, simulating the case when the gaia 193 // Triggers an auth error on the server, simulating the case when the gaia
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 scoped_ptr<net::URLFetcherImplFactory> factory_; 354 scoped_ptr<net::URLFetcherImplFactory> factory_;
355 355
356 // Number of default entries (as determined by the existing entries at setup 356 // Number of default entries (as determined by the existing entries at setup
357 // time on client 0). 357 // time on client 0).
358 size_t number_of_default_sync_items_; 358 size_t number_of_default_sync_items_;
359 359
360 DISALLOW_COPY_AND_ASSIGN(SyncTest); 360 DISALLOW_COPY_AND_ASSIGN(SyncTest);
361 }; 361 };
362 362
363 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ 363 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/sync_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