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

Unified Diff: net/quic/quic_end_to_end_unittest.cc

Issue 2136563002: Remove calls to MessageLoop::current() in base. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: restore dns_config_service_posix_unittest.cc Created 4 years, 5 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
« base/threading/thread.h ('K') | « net/dns/dns_config_service_posix_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_end_to_end_unittest.cc
diff --git a/net/quic/quic_end_to_end_unittest.cc b/net/quic/quic_end_to_end_unittest.cc
index 30bb5f8b0421f050c324ca105a133aa71458b969..a2df10d3c7bee31fbfd451978d9dc8d4238578e6 100644
--- a/net/quic/quic_end_to_end_unittest.cc
+++ b/net/quic/quic_end_to_end_unittest.cc
@@ -9,6 +9,7 @@
#include "base/compiler_specific.h"
#include "base/memory/ptr_util.h"
+#include "base/run_loop.h"
#include "base/stl_util.h"
#include "base/strings/string_number_conversions.h"
#include "net/base/elements_upload_data_stream.h"
@@ -290,7 +291,7 @@ TEST_P(QuicEndToEndTest, LargeGetWithNoPacketLoss) {
consumer.Start(&request_, BoundNetLog());
// Will terminate when the last consumer completes.
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
CheckResponse(consumer, "HTTP/1.1 200", response);
}
@@ -307,7 +308,7 @@ TEST_P(QuicEndToEndTest, TokenBinding) {
consumer.Start(&request_, BoundNetLog());
// Will terminate when the last consumer completes.
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
CheckResponse(consumer, "HTTP/1.1 200", kResponseBody);
HttpRequestHeaders headers;
@@ -330,7 +331,7 @@ TEST_P(QuicEndToEndTest, LargePostWithNoPacketLoss) {
consumer.Start(&request_, BoundNetLog());
// Will terminate when the last consumer completes.
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
CheckResponse(consumer, "HTTP/1.1 200", kResponseBody);
}
@@ -352,7 +353,7 @@ TEST_P(QuicEndToEndTest, LargePostWithPacketLoss) {
consumer.Start(&request_, BoundNetLog());
// Will terminate when the last consumer completes.
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
CheckResponse(consumer, "HTTP/1.1 200", kResponseBody);
}
@@ -378,7 +379,7 @@ TEST_P(QuicEndToEndTest, UberTest) {
}
// Will terminate when the last consumer completes.
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
for (size_t i = 0; i < num_requests; ++i) {
CheckResponse(*consumers[i], "HTTP/1.1 200", kResponseBody);
« base/threading/thread.h ('K') | « net/dns/dns_config_service_posix_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698