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

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: 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 #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 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 bool SetUpLocalTestServer(); 268 bool SetUpLocalTestServer();
269 269
270 // Helper method used to destroy the local python sync test server if one was 270 // Helper method used to destroy the local python sync test server if one was
271 // created. Returns true if successful. 271 // created. Returns true if successful.
272 bool TearDownLocalPythonTestServer(); 272 bool TearDownLocalPythonTestServer();
273 273
274 // Helper method used to destroy the local sync test server if one was 274 // Helper method used to destroy the local sync test server if one was
275 // created. Returns true if successful. 275 // created. Returns true if successful.
276 bool TearDownLocalTestServer(); 276 bool TearDownLocalTestServer();
277 277
278 // Helper method that waits for up to |time_ms| milliseconds for the test 278 // Helper method that waits for up to |time| seconds for the test server
akalin 2012/07/11 20:35:15 remove 'seconds '? perhaps rename 'time' to 'wait
279 // server to start. Splits the time into |intervals| intervals, and polls the 279 // to start. Splits the time into |intervals| intervals, and polls the
280 // server after each interval to see if it has started. Returns true if 280 // server after each interval to see if it has started. Returns true if
281 // successful. 281 // successful.
282 bool WaitForTestServerToStart(int time_ms, int intervals); 282 bool WaitForTestServerToStart(base::TimeDelta time, int intervals);
283 283
284 // Helper method used to check if the test server is up and running. 284 // Helper method used to check if the test server is up and running.
285 bool IsTestServerRunning(); 285 bool IsTestServerRunning();
286 286
287 // Used to disable and enable network connectivity by providing and 287 // Used to disable and enable network connectivity by providing and
288 // clearing an invalid proxy configuration. 288 // clearing an invalid proxy configuration.
289 void SetProxyConfig(net::URLRequestContextGetter* context, 289 void SetProxyConfig(net::URLRequestContextGetter* context,
290 const net::ProxyConfig& proxy_config); 290 const net::ProxyConfig& proxy_config);
291 291
292 // Helper method used to set up fake responses for kClientLoginUrl, 292 // Helper method used to set up fake responses for kClientLoginUrl,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698