Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Unified Diff: net/dns/serial_worker_unittest.cc

Issue 2082773002: Remove calls to MessageLoop::current() in net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: forward declaration Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/proxy/mock_proxy_resolver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/serial_worker_unittest.cc
diff --git a/net/dns/serial_worker_unittest.cc b/net/dns/serial_worker_unittest.cc
index f03c4768a06be255be79044955d2beb1eb98bd49..1c544db650ac60f4df414001b781c259eaa3e728 100644
--- a/net/dns/serial_worker_unittest.cc
+++ b/net/dns/serial_worker_unittest.cc
@@ -58,7 +58,7 @@ class SerialWorkerTest : public testing::Test {
}
void OnWorkFinished() {
- EXPECT_TRUE(message_loop_ == base::MessageLoop::current());
+ EXPECT_TRUE(message_loop_->task_runner()->BelongsToCurrentThread());
EXPECT_EQ(output_value_, input_value_);
BreakNow("OnWorkFinished");
}
« no previous file with comments | « no previous file | net/proxy/mock_proxy_resolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698