void TestSuite::PreInitialize(bool create_at_exit_manager) {
#if defined(OS_WIN)
testing::GTEST_FLAG(catch_exceptions) = false;
- base::TimeTicks::SetNowIsHighResNowIfSupported();
#endif
base::EnableTerminationOnHeapCorruption();
#if defined(OS_LINUX) && defined(USE_AURA)
}
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();
#endif // !defined(OS_IOS)
TestTimeouts::Initialize();
+
+ trace_to_file_.BeginTracingFromCommandLineOptions();
}
void TestSuite::Shutdown() {