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

Unified Diff: base/test/test_suite.cc

Issue 486193003: Support --wait-for-debugger in tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/test_suite.cc
diff --git a/base/test/test_suite.cc b/base/test/test_suite.cc
index f12965fc58639cb6662281f2e0436596d81feb60..0084d1e41de3e2f085d7fcbee3443befc27e7fc8 100644
--- a/base/test/test_suite.cc
+++ b/base/test/test_suite.cc
@@ -281,6 +281,13 @@ void TestSuite::SuppressErrorDialogs() {
}
void TestSuite::Initialize() {
+#if !defined(OS_IOS)
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kWaitForDebugger)) {
+ base::debug::WaitForDebugger(60, true);
+ }
+#endif
+
#if defined(OS_MACOSX) && !defined(OS_IOS)
// Some of the app unit tests spin runloops.
mock_cr_app::RegisterMockCrApp();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698