| 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 // Triggers a migration for one or more datatypes, and waits | 136 // Triggers a migration for one or more datatypes, and waits |
| 137 // for the server to complete it. This operation is available | 137 // for the server to complete it. This operation is available |
| 138 // only if ServerSupportsErrorTriggering() returned true. | 138 // only if ServerSupportsErrorTriggering() returned true. |
| 139 void TriggerMigrationDoneError(const syncable::ModelTypeSet& model_types); | 139 void TriggerMigrationDoneError(const syncable::ModelTypeSet& model_types); |
| 140 | 140 |
| 141 // Triggers the server to set its birthday to a random value thereby | 141 // Triggers the server to set its birthday to a random value thereby |
| 142 // the server would return a birthday error on next sync. | 142 // the server would return a birthday error on next sync. |
| 143 void TriggerBirthdayError(); | 143 void TriggerBirthdayError(); |
| 144 | 144 |
| 145 // Triggers a transient error on the server. Note the server will stay in |
| 146 // this state until shut down. |
| 147 void TriggerTransientError(); |
| 148 |
| 145 protected: | 149 protected: |
| 146 // InProcessBrowserTest override. Destroys all the sync clients and sync | 150 // InProcessBrowserTest override. Destroys all the sync clients and sync |
| 147 // profiles created by a test. | 151 // profiles created by a test. |
| 148 virtual void CleanUpOnMainThread(); | 152 virtual void CleanUpOnMainThread(); |
| 149 | 153 |
| 150 // InProcessBrowserTest override. Changes behavior of the default host | 154 // InProcessBrowserTest override. Changes behavior of the default host |
| 151 // resolver to avoid DNS lookup errors. | 155 // resolver to avoid DNS lookup errors. |
| 152 virtual void SetUpInProcessBrowserTestFixture(); | 156 virtual void SetUpInProcessBrowserTestFixture(); |
| 153 | 157 |
| 154 // InProcessBrowserTest override. Resets the host resolver its default | 158 // InProcessBrowserTest override. Resets the host resolver its default |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 // Fake URLFetcher factory used to mock out GAIA signin. | 263 // Fake URLFetcher factory used to mock out GAIA signin. |
| 260 scoped_ptr<FakeURLFetcherFactory> factory_; | 264 scoped_ptr<FakeURLFetcherFactory> factory_; |
| 261 | 265 |
| 262 // URLFetcher factory used to contact sync server. | 266 // URLFetcher factory used to contact sync server. |
| 263 scoped_ptr<URLFetcherFactory> integration_factory_; | 267 scoped_ptr<URLFetcherFactory> integration_factory_; |
| 264 | 268 |
| 265 DISALLOW_COPY_AND_ASSIGN(LiveSyncTest); | 269 DISALLOW_COPY_AND_ASSIGN(LiveSyncTest); |
| 266 }; | 270 }; |
| 267 | 271 |
| 268 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ | 272 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ |
| OLD | NEW |