| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 // Triggers an XMPP auth error on the server. Note the server will | 235 // Triggers an XMPP auth error on the server. Note the server will |
| 236 // stay in this state until shut down. | 236 // stay in this state until shut down. |
| 237 void TriggerXmppAuthError(); | 237 void TriggerXmppAuthError(); |
| 238 | 238 |
| 239 // Triggers a sync error on the server. | 239 // Triggers a sync error on the server. |
| 240 // error: The error the server is expected to return. | 240 // error: The error the server is expected to return. |
| 241 // frequency: Frequency with which the error is returned. | 241 // frequency: Frequency with which the error is returned. |
| 242 void TriggerSyncError(const syncer::SyncProtocolError& error, | 242 void TriggerSyncError(const syncer::SyncProtocolError& error, |
| 243 SyncErrorFrequency frequency); | 243 SyncErrorFrequency frequency); |
| 244 | 244 |
| 245 // Triggers the creation the Synced Bookmarks folder on the server. | |
| 246 void TriggerCreateSyncedBookmarks(); | |
| 247 | |
| 248 // Returns the FakeServer being used for the test or NULL if FakeServer is | 245 // Returns the FakeServer being used for the test or NULL if FakeServer is |
| 249 // not being used. | 246 // not being used. |
| 250 fake_server::FakeServer* GetFakeServer() const; | 247 fake_server::FakeServer* GetFakeServer() const; |
| 251 | 248 |
| 252 protected: | 249 protected: |
| 253 // Add custom switches needed for running the test. | 250 // Add custom switches needed for running the test. |
| 254 virtual void AddTestSwitches(base::CommandLine* cl); | 251 virtual void AddTestSwitches(base::CommandLine* cl); |
| 255 | 252 |
| 256 // Append the command line switches to enable experimental types that aren't | 253 // Append the command line switches to enable experimental types that aren't |
| 257 // on by default yet. | 254 // on by default yet. |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 // Fake URLFetcher factory used to mock out GAIA signin. | 415 // Fake URLFetcher factory used to mock out GAIA signin. |
| 419 scoped_ptr<net::FakeURLFetcherFactory> fake_factory_; | 416 scoped_ptr<net::FakeURLFetcherFactory> fake_factory_; |
| 420 | 417 |
| 421 // The URLFetcherImplFactory instance used to instantiate |fake_factory_|. | 418 // The URLFetcherImplFactory instance used to instantiate |fake_factory_|. |
| 422 scoped_ptr<net::URLFetcherImplFactory> factory_; | 419 scoped_ptr<net::URLFetcherImplFactory> factory_; |
| 423 | 420 |
| 424 DISALLOW_COPY_AND_ASSIGN(SyncTest); | 421 DISALLOW_COPY_AND_ASSIGN(SyncTest); |
| 425 }; | 422 }; |
| 426 | 423 |
| 427 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ | 424 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ |
| OLD | NEW |