Index: chrome/test/base/in_process_browser_test.cc |
diff --git a/chrome/test/base/in_process_browser_test.cc b/chrome/test/base/in_process_browser_test.cc |
index 9af204ac529ca7e11601f2d2bbf16fd6096731db..867c5ca532d7b6315d0135404223ee4305a17660 100644 |
--- a/chrome/test/base/in_process_browser_test.cc |
+++ b/chrome/test/base/in_process_browser_test.cc |
@@ -519,7 +519,7 @@ base::CommandLine InProcessBrowserTest::GetCommandLineForRelaunch() { |
} |
#endif |
-void InProcessBrowserTest::RunTestOnMainThreadLoop() { |
+void InProcessBrowserTest::PreRunTestOnMainThread() { |
AfterStartupTaskUtils::SetBrowserStartupIsCompleteForTesting(); |
// Pump startup related events. |
@@ -566,13 +566,15 @@ void InProcessBrowserTest::RunTestOnMainThreadLoop() { |
if (browser_ && global_browser_set_up_function_) |
ASSERT_TRUE(global_browser_set_up_function_(browser_)); |
- SetUpOnMainThread(); |
#if defined(OS_MACOSX) |
autorelease_pool_->Recycle(); |
#endif |
- if (!HasFatalFailure()) |
- RunTestOnMainThread(); |
+ // TODO(jam): remove this. |
+ disable_io_checks(); |
jam
2017/04/22 00:14:55
I'll do this in a followup to not make this change
|
+} |
+ |
+void InProcessBrowserTest::PostRunTestOnMainThread() { |
#if defined(OS_MACOSX) |
autorelease_pool_->Recycle(); |
#endif |
@@ -583,9 +585,6 @@ void InProcessBrowserTest::RunTestOnMainThreadLoop() { |
EXPECT_EQ("", error_message); |
} |
- // Invoke cleanup and quit even if there are failures. This is similar to |
- // gtest in that it invokes TearDown even if Setup fails. |
- TearDownOnMainThread(); |
#if defined(OS_MACOSX) |
autorelease_pool_->Recycle(); |
#endif |