Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: chrome/browser/sync/test/integration/sync_test.h

Issue 10689157: Switch to TimeDelta interfaces for TestTimeouts in sync code. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix error messaging again. Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 7
8 #include "chrome/test/base/in_process_browser_test.h" 8 #include "chrome/test/base/in_process_browser_test.h"
9 9
10 #include <string> 10 #include <string>
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 bool SetUpLocalTestServer(); 267 bool SetUpLocalTestServer();
268 268
269 // Helper method used to destroy the local python sync test server if one was 269 // Helper method used to destroy the local python sync test server if one was
270 // created. Returns true if successful. 270 // created. Returns true if successful.
271 bool TearDownLocalPythonTestServer(); 271 bool TearDownLocalPythonTestServer();
272 272
273 // Helper method used to destroy the local sync test server if one was 273 // Helper method used to destroy the local sync test server if one was
274 // created. Returns true if successful. 274 // created. Returns true if successful.
275 bool TearDownLocalTestServer(); 275 bool TearDownLocalTestServer();
276 276
277 // Helper method that waits for up to |time_ms| milliseconds for the test 277 // Helper method that waits for up to |wait| for the test server
278 // server to start. Splits the time into |intervals| intervals, and polls the 278 // to start. Splits the time into |intervals| intervals, and polls the
279 // server after each interval to see if it has started. Returns true if 279 // server after each interval to see if it has started. Returns true if
280 // successful. 280 // successful.
281 bool WaitForTestServerToStart(int time_ms, int intervals); 281 bool WaitForTestServerToStart(base::TimeDelta wait, int intervals);
282 282
283 // Helper method used to check if the test server is up and running. 283 // Helper method used to check if the test server is up and running.
284 bool IsTestServerRunning(); 284 bool IsTestServerRunning();
285 285
286 // Used to disable and enable network connectivity by providing and 286 // Used to disable and enable network connectivity by providing and
287 // clearing an invalid proxy configuration. 287 // clearing an invalid proxy configuration.
288 void SetProxyConfig(net::URLRequestContextGetter* context, 288 void SetProxyConfig(net::URLRequestContextGetter* context,
289 const net::ProxyConfig& proxy_config); 289 const net::ProxyConfig& proxy_config);
290 290
291 // Helper method used to set up fake responses for kClientLoginUrl, 291 // Helper method used to set up fake responses for kClientLoginUrl,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 scoped_ptr<net::URLFetcherImplFactory> factory_; 353 scoped_ptr<net::URLFetcherImplFactory> factory_;
354 354
355 // Number of default entries (as determined by the existing entries at setup 355 // Number of default entries (as determined by the existing entries at setup
356 // time on client 0). 356 // time on client 0).
357 size_t number_of_default_sync_items_; 357 size_t number_of_default_sync_items_;
358 358
359 DISALLOW_COPY_AND_ASSIGN(SyncTest); 359 DISALLOW_COPY_AND_ASSIGN(SyncTest);
360 }; 360 };
361 361
362 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_ 362 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SYNC_TEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/sessions_helper.cc ('k') | chrome/browser/sync/test/integration/sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698