| 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/in_process_browser_test.h" | 9 #include "chrome/test/in_process_browser_test.h" |
| 10 | 10 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 127 |
| 128 // Triggers a migration for one or more datatypes, and waits | 128 // Triggers a migration for one or more datatypes, and waits |
| 129 // for the server to complete it. This operation is available | 129 // for the server to complete it. This operation is available |
| 130 // only if ServerSupportsErrorTriggering() returned true. | 130 // only if ServerSupportsErrorTriggering() returned true. |
| 131 void TriggerMigrationDoneError(const syncable::ModelTypeSet& model_types); | 131 void TriggerMigrationDoneError(const syncable::ModelTypeSet& model_types); |
| 132 | 132 |
| 133 // Triggers the server to set its birthday to a random value thereby | 133 // Triggers the server to set its birthday to a random value thereby |
| 134 // the server would return a birthday error on next sync. | 134 // the server would return a birthday error on next sync. |
| 135 void TriggerBirthdayError(); | 135 void TriggerBirthdayError(); |
| 136 | 136 |
| 137 // Triggers a transient error on the server. Note the server will stay in |
| 138 // this state until shut down. |
| 139 void TriggerTransientError(); |
| 140 |
| 137 protected: | 141 protected: |
| 138 // InProcessBrowserTest override. Destroys all the sync clients and sync | 142 // InProcessBrowserTest override. Destroys all the sync clients and sync |
| 139 // profiles created by a test. | 143 // profiles created by a test. |
| 140 virtual void CleanUpOnMainThread(); | 144 virtual void CleanUpOnMainThread(); |
| 141 | 145 |
| 142 // InProcessBrowserTest override. Changes behavior of the default host | 146 // InProcessBrowserTest override. Changes behavior of the default host |
| 143 // resolver to avoid DNS lookup errors. | 147 // resolver to avoid DNS lookup errors. |
| 144 virtual void SetUpInProcessBrowserTestFixture(); | 148 virtual void SetUpInProcessBrowserTestFixture(); |
| 145 | 149 |
| 146 // InProcessBrowserTest override. Resets the host resolver its default | 150 // InProcessBrowserTest override. Resets the host resolver its default |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 // Fake URLFetcher factory used to mock out GAIA signin. | 251 // Fake URLFetcher factory used to mock out GAIA signin. |
| 248 scoped_ptr<FakeURLFetcherFactory> factory_; | 252 scoped_ptr<FakeURLFetcherFactory> factory_; |
| 249 | 253 |
| 250 // URLFetcher factory used to contact sync server. | 254 // URLFetcher factory used to contact sync server. |
| 251 scoped_ptr<URLFetcherFactory> integration_factory_; | 255 scoped_ptr<URLFetcherFactory> integration_factory_; |
| 252 | 256 |
| 253 DISALLOW_COPY_AND_ASSIGN(LiveSyncTest); | 257 DISALLOW_COPY_AND_ASSIGN(LiveSyncTest); |
| 254 }; | 258 }; |
| 255 | 259 |
| 256 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ | 260 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ |
| OLD | NEW |