Commit 39ee610f authored by Wez's avatar Wez Committed by Commit Bot

Fix RunLoopDeathTest to expect CHECK rather than DCHECK failure.

Bug: 832728, 703346
Change-Id: I4f400986db39b957095a30dc7770f6e6e541a8ae
Reviewed-on: https://chromium-review.googlesource.com/1012568
Commit-Queue: Wez <wez@chromium.org>
Reviewed-by: default avatarGabriel Charette <gab@chromium.org>
Cr-Commit-Position: refs/heads/master@{#550908}
parent 7f71f27b
......@@ -660,8 +660,8 @@ INSTANTIATE_TEST_CASE_P(
TEST(RunLoopDeathTest, MustRegisterBeforeInstantiating) {
TestBoundDelegate unbound_test_delegate_;
// Exercise the DCHECK in RunLoop::RunLoop().
EXPECT_DCHECK_DEATH({ RunLoop(); });
// RunLoop::RunLoop() should CHECK fetching the ThreadTaskRunnerHandle.
EXPECT_DEATH_IF_SUPPORTED({ RunLoop(); }, "");
}
TEST(RunLoopDelegateTest, NestableTasksDontRunInDefaultNestedLoops) {
......
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