| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 void TriggerTransientError(); | 191 void TriggerTransientError(); |
| 192 | 192 |
| 193 // Triggers an auth error on the server, simulating the case when the gaia | 193 // Triggers an auth error on the server, simulating the case when the gaia |
| 194 // password is changed at another location. Note the server will stay in | 194 // password is changed at another location. Note the server will stay in |
| 195 // this state until shut down. | 195 // this state until shut down. |
| 196 void TriggerAuthError(); | 196 void TriggerAuthError(); |
| 197 | 197 |
| 198 // Triggers a sync error on the server. | 198 // Triggers a sync error on the server. |
| 199 // error: The error the server is expected to return. | 199 // error: The error the server is expected to return. |
| 200 // frequency: Frequency with which the error is returned. | 200 // frequency: Frequency with which the error is returned. |
| 201 void TriggerSyncError(const csync::SyncProtocolError& error, | 201 void TriggerSyncError(const syncer::SyncProtocolError& error, |
| 202 SyncErrorFrequency frequency); | 202 SyncErrorFrequency frequency); |
| 203 | 203 |
| 204 // Triggers the creation the Synced Bookmarks folder on the server. | 204 // Triggers the creation the Synced Bookmarks folder on the server. |
| 205 void TriggerCreateSyncedBookmarks(); | 205 void TriggerCreateSyncedBookmarks(); |
| 206 | 206 |
| 207 // Returns the number of default items that every client syncs. | 207 // Returns the number of default items that every client syncs. |
| 208 int NumberOfDefaultSyncItems() const; | 208 int NumberOfDefaultSyncItems() const; |
| 209 | 209 |
| 210 protected: | 210 protected: |
| 211 // Add custom switches needed for running the test. | 211 // Add custom switches needed for running the test. |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 scoped_ptr<net::URLFetcherImplFactory> factory_; | 354 scoped_ptr<net::URLFetcherImplFactory> factory_; |
| 355 | 355 |
| 356 // Number of default entries (as determined by the existing entries at setup | 356 // Number of default entries (as determined by the existing entries at setup |
| 357 // time on client 0). | 357 // time on client 0). |
| 358 size_t number_of_default_sync_items_; | 358 size_t number_of_default_sync_items_; |
| 359 | 359 |
| 360 DISALLOW_COPY_AND_ASSIGN(SyncTest); | 360 DISALLOW_COPY_AND_ASSIGN(SyncTest); |
| 361 }; | 361 }; |
| 362 | 362 |
| 363 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ | 363 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ |
| OLD | NEW |