| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 bool AwaitQuiescence(); | 123 bool AwaitQuiescence(); |
| 124 | 124 |
| 125 // Returns true if the server being used supports injecting errors. | 125 // Returns true if the server being used supports injecting errors. |
| 126 bool ServerSupportsErrorTriggering(); | 126 bool ServerSupportsErrorTriggering(); |
| 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 |
| 134 // the server would return a birthday error on next sync. |
| 135 void TriggerBirthdayError(); |
| 136 |
| 133 protected: | 137 protected: |
| 134 // InProcessBrowserTest override. Destroys all the sync clients and sync | 138 // InProcessBrowserTest override. Destroys all the sync clients and sync |
| 135 // profiles created by a test. | 139 // profiles created by a test. |
| 136 virtual void CleanUpOnMainThread(); | 140 virtual void CleanUpOnMainThread(); |
| 137 | 141 |
| 138 // InProcessBrowserTest override. Changes behavior of the default host | 142 // InProcessBrowserTest override. Changes behavior of the default host |
| 139 // resolver to avoid DNS lookup errors. | 143 // resolver to avoid DNS lookup errors. |
| 140 virtual void SetUpInProcessBrowserTestFixture(); | 144 virtual void SetUpInProcessBrowserTestFixture(); |
| 141 | 145 |
| 142 // InProcessBrowserTest override. Resets the host resolver its default | 146 // InProcessBrowserTest override. Resets the host resolver its default |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 // Fake URLFetcher factory used to mock out GAIA signin. | 247 // Fake URLFetcher factory used to mock out GAIA signin. |
| 244 scoped_ptr<FakeURLFetcherFactory> factory_; | 248 scoped_ptr<FakeURLFetcherFactory> factory_; |
| 245 | 249 |
| 246 // URLFetcher factory used to contact sync server. | 250 // URLFetcher factory used to contact sync server. |
| 247 scoped_ptr<URLFetcherFactory> integration_factory_; | 251 scoped_ptr<URLFetcherFactory> integration_factory_; |
| 248 | 252 |
| 249 DISALLOW_COPY_AND_ASSIGN(LiveSyncTest); | 253 DISALLOW_COPY_AND_ASSIGN(LiveSyncTest); |
| 250 }; | 254 }; |
| 251 | 255 |
| 252 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ | 256 #endif // CHROME_TEST_LIVE_SYNC_LIVE_SYNC_TEST_H_ |
| OLD | NEW |