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

Unified Diff: chrome/test/live_sync/live_sync_test.h

Issue 2876029: Refactor the wait code in ProfileSyncServiceTestHarness. (Closed)
Patch Set: Making test timeout a const int. Created 10 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/test/live_sync/profile_sync_service_test_harness.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/live_sync/live_sync_test.h
diff --git a/chrome/test/live_sync/live_sync_test.h b/chrome/test/live_sync/live_sync_test.h
index dcc4eb56f4405b38dcc9abbeb41878877fc01847..71dbbdccb0223e1297f94f58247fa0e42462da74 100644
--- a/chrome/test/live_sync/live_sync_test.h
+++ b/chrome/test/live_sync/live_sync_test.h
@@ -26,6 +26,9 @@ extern const wchar_t kSyncUserForTest[];
extern const wchar_t kSyncPasswordForTest[];
}
+// Live sync tests are allowed to run for up to 5 minutes.
+const int kTestTimeoutInMS = 300000;
+
// This is the base class for integration tests for all sync data types. Derived
// classes must be defined for each sync data type. Individual tests are defined
// using the IN_PROC_BROWSER_TEST_F macro.
@@ -56,6 +59,7 @@ class LiveSyncTest : public InProcessBrowserTest {
num_clients_(-1),
started_local_test_server_(false) {
InProcessBrowserTest::set_show_window(true);
+ InProcessBrowserTest::SetInitialTimeoutInMS(kTestTimeoutInMS);
switch (test_type_) {
case SINGLE_CLIENT: {
num_clients_ = 1;
« no previous file with comments | « no previous file | chrome/test/live_sync/profile_sync_service_test_harness.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698