Support --wait-for-debugger in tests.

Review URL: https://codereview.chromium.org/486193003

Cr-Commit-Position: refs/heads/master@{#291456}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@291456 0039d316-1c4b-4281-b951-d872f2087c98
parent d4855d31
......@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment