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

Unified Diff: chrome/browser/process_singleton_linux_uitest.cc

Issue 209018: linux: expose the ProcessSingleton timeout to speed tests (Closed)
Patch Set: Created 11 years, 3 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
Index: chrome/browser/process_singleton_linux_uitest.cc
diff --git a/chrome/browser/process_singleton_linux_uitest.cc b/chrome/browser/process_singleton_linux_uitest.cc
index 6119e3d8a5402c9ff83aaeae081f4b4c953a611a..d85f0ebf706017de154d5336c1d835ea5cab5dae 100644
--- a/chrome/browser/process_singleton_linux_uitest.cc
+++ b/chrome/browser/process_singleton_linux_uitest.cc
@@ -58,7 +58,9 @@ class ProcessSingletonLinuxTest : public UITest {
ProcessSingleton process_singleton(user_data_dir);
- return process_singleton.NotifyOtherProcess();
+ // Use a short timeout to keep tests fast.
+ const int kTimeoutSeconds = 1;
Paweł Hajdan Jr. 2009/09/17 19:45:56 I'd be a bit more conservative and put 3 instead o
+ return process_singleton.NotifyOtherProcessWithTimeout(kTimeoutSeconds);
}
std::vector<std::string> old_argv_;
« chrome/browser/process_singleton_linux.cc ('K') | « chrome/browser/process_singleton_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698