Commit 28dcf9d6 authored by Lukasz Krakowiak's avatar Lukasz Krakowiak Committed by Commit Bot

net/socket: Replace QuitCurrentWhenIdleClosureDeprecated() with QuitWhenIdleClosure()

This change replaces
base::RunLoop::QuitCurrentWhenIdleClosureDeprecated() call with a
loop->QuitWhenIdleClosure() call on local RunLoop instance.

Bug: 922118
Change-Id: I558776241473df0393095116bc44896ee2550bee
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2218029
Commit-Queue: Peter Beverloo <peter@chromium.org>
Reviewed-by: default avatarAsanka Herath <asanka@chromium.org>
Cr-Commit-Position: refs/heads/master@{#775041}
parent f2fbb2a3
...@@ -4224,11 +4224,11 @@ TEST_F(ClientSocketPoolBaseTest, PreconnectWithoutBackupJob) { ...@@ -4224,11 +4224,11 @@ TEST_F(ClientSocketPoolBaseTest, PreconnectWithoutBackupJob) {
// Verify the backup timer doesn't create a backup job, by making // Verify the backup timer doesn't create a backup job, by making
// the backup job a pending job instead of a waiting job, so it // the backup job a pending job instead of a waiting job, so it
// *would* complete if it were created. // *would* complete if it were created.
base::RunLoop loop;
connect_job_factory_->set_job_type(TestConnectJob::kMockPendingJob); connect_job_factory_->set_job_type(TestConnectJob::kMockPendingJob);
base::ThreadTaskRunnerHandle::Get()->PostDelayedTask( base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
FROM_HERE, base::RunLoop::QuitCurrentWhenIdleClosureDeprecated(), FROM_HERE, loop.QuitWhenIdleClosure(), base::TimeDelta::FromSeconds(1));
base::TimeDelta::FromSeconds(1)); loop.Run();
base::RunLoop().Run();
EXPECT_FALSE(pool_->HasGroupForTesting(TestGroupId("a"))); EXPECT_FALSE(pool_->HasGroupForTesting(TestGroupId("a")));
} }
......
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