| 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_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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 void TriggerMigrationDoneError(syncable::ModelTypeSet 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 an auth error on the server, simulating the case when the gaia |
| 176 // password is changed at another location. Note the server will stay in |
| 177 // this state until shut down. |
| 178 void TriggerAuthError(); |
| 179 |
| 175 // Triggers a sync error on the server. | 180 // Triggers a sync error on the server. |
| 176 void TriggerSyncError(const browser_sync::SyncProtocolError& error); | 181 void TriggerSyncError(const browser_sync::SyncProtocolError& error); |
| 177 | 182 |
| 178 // Triggers setting the sync_tabs field of the nigori node. | 183 // Triggers setting the sync_tabs field of the nigori node. |
| 179 void TriggerSetSyncTabs(); | 184 void TriggerSetSyncTabs(); |
| 180 | 185 |
| 181 // Returns the number of default items that every client syncs. | 186 // Returns the number of default items that every client syncs. |
| 182 int NumberOfDefaultSyncItems() const; | 187 int NumberOfDefaultSyncItems() const; |
| 183 | 188 |
| 184 protected: | 189 protected: |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 | 318 |
| 314 // The URLFetcherImplFactory instance used to instantiate |fake_factory_|. | 319 // The URLFetcherImplFactory instance used to instantiate |fake_factory_|. |
| 315 scoped_ptr<URLFetcherImplFactory> factory_; | 320 scoped_ptr<URLFetcherImplFactory> factory_; |
| 316 | 321 |
| 317 DISALLOW_COPY_AND_ASSIGN(SyncTest); | 322 DISALLOW_COPY_AND_ASSIGN(SyncTest); |
| 318 }; | 323 }; |
| 319 | 324 |
| 320 DISABLE_RUNNABLE_METHOD_REFCOUNT(SyncTest); | 325 DISABLE_RUNNABLE_METHOD_REFCOUNT(SyncTest); |
| 321 | 326 |
| 322 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ | 327 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ |
| OLD | NEW |