Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 void EnableNotifications(); | |
|
Raghu Simha
2011/09/01 03:53:06
Add a similar comment as the one above DisableNoti
akalin
2011/09/01 04:03:24
Done.
| |
| 152 | |
| 151 // Trigger a notification to be sent to all clients. This operation | 153 // Trigger a notification to be sent to all clients. This operation |
| 152 // is available only if ServerSupportsNotificationControl() returned | 154 // is available only if ServerSupportsNotificationControl() returned |
| 153 // true. | 155 // true. |
| 154 void TriggerNotification(const syncable::ModelTypeSet& changed_types); | 156 void TriggerNotification(const syncable::ModelTypeSet& changed_types); |
| 155 | 157 |
| 156 // Returns true if the server being used supports injecting errors. | 158 // Returns true if the server being used supports injecting errors. |
| 157 bool ServerSupportsErrorTriggering(); | 159 bool ServerSupportsErrorTriggering() const; |
| 158 | 160 |
| 159 // Triggers a migration for one or more datatypes, and waits | 161 // Triggers a migration for one or more datatypes, and waits |
| 160 // for the server to complete it. This operation is available | 162 // for the server to complete it. This operation is available |
| 161 // only if ServerSupportsErrorTriggering() returned true. | 163 // only if ServerSupportsErrorTriggering() returned true. |
| 162 void TriggerMigrationDoneError(const syncable::ModelTypeSet& model_types); | 164 void TriggerMigrationDoneError(const syncable::ModelTypeSet& model_types); |
| 163 | 165 |
| 164 // Triggers the server to set its birthday to a random value thereby | 166 // Triggers the server to set its birthday to a random value thereby |
| 165 // the server would return a birthday error on next sync. | 167 // the server would return a birthday error on next sync. |
| 166 void TriggerBirthdayError(); | 168 void TriggerBirthdayError(); |
| 167 | 169 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 304 | 306 |
| 305 // The URLFetcherFactory instance used to instantiate |fake_factory_|. | 307 // The URLFetcherFactory instance used to instantiate |fake_factory_|. |
| 306 scoped_ptr<URLFetcherFactory> factory_; | 308 scoped_ptr<URLFetcherFactory> factory_; |
| 307 | 309 |
| 308 DISALLOW_COPY_AND_ASSIGN(LiveSyncTest); | 310 DISALLOW_COPY_AND_ASSIGN(LiveSyncTest); |
| 309 }; | 311 }; |
| 310 | 312 |
| 311 DISABLE_RUNNABLE_METHOD_REFCOUNT(LiveSyncTest); | 313 DISABLE_RUNNABLE_METHOD_REFCOUNT(LiveSyncTest); |
| 312 | 314 |
| 313 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ | 315 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ |
| OLD | NEW |