| 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 | 168 |
| 169 // Triggers the server to set its birthday to a random value thereby | 169 // Triggers the server to set its birthday to a random value thereby |
| 170 // the server would return a birthday error on next sync. | 170 // the server would return a birthday error on next sync. |
| 171 void TriggerBirthdayError(); | 171 void TriggerBirthdayError(); |
| 172 | 172 |
| 173 // Triggers a transient error on the server. Note the server will stay in | 173 // Triggers a transient error on the server. Note the server will stay in |
| 174 // this state until shut down. | 174 // this state until shut down. |
| 175 void TriggerTransientError(); | 175 void TriggerTransientError(); |
| 176 | 176 |
| 177 // Triggers a sync error on the server. | 177 // Triggers a sync error on the server. |
| 178 void TriggerSyncError(const browser_sync::SyncProtocolError& error); | 178 void TriggerSyncError(const browser_sync::SyncOperationResult& error); |
| 179 | 179 |
| 180 // Triggers setting the sync_tabs field of the nigori node. | 180 // Triggers setting the sync_tabs field of the nigori node. |
| 181 void TriggerSetSyncTabs(); | 181 void TriggerSetSyncTabs(); |
| 182 | 182 |
| 183 protected: | 183 protected: |
| 184 // Add custom switches needed for running the test. | 184 // Add custom switches needed for running the test. |
| 185 virtual void AddTestSwitches(CommandLine* cl); | 185 virtual void AddTestSwitches(CommandLine* cl); |
| 186 | 186 |
| 187 // Append the command line switches to enable experimental types that aren't | 187 // Append the command line switches to enable experimental types that aren't |
| 188 // on by default yet. | 188 // on by default yet. |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 | 312 |
| 313 // The URLFetcherFactory instance used to instantiate |fake_factory_|. | 313 // The URLFetcherFactory instance used to instantiate |fake_factory_|. |
| 314 scoped_ptr<URLFetcherFactory> factory_; | 314 scoped_ptr<URLFetcherFactory> factory_; |
| 315 | 315 |
| 316 DISALLOW_COPY_AND_ASSIGN(SyncTest); | 316 DISALLOW_COPY_AND_ASSIGN(SyncTest); |
| 317 }; | 317 }; |
| 318 | 318 |
| 319 DISABLE_RUNNABLE_METHOD_REFCOUNT(SyncTest); | 319 DISABLE_RUNNABLE_METHOD_REFCOUNT(SyncTest); |
| 320 | 320 |
| 321 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ | 321 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ |
| OLD | NEW |