summaryrefslogtreecommitdiffstats
path: root/net/http
diff options
context:
space:
mode:
Diffstat (limited to 'net/http')
-rw-r--r--net/http/http_cache_unittest.cc3
-rw-r--r--net/http/http_network_transaction_unittest.cc12
2 files changed, 5 insertions, 10 deletions
diff --git a/net/http/http_cache_unittest.cc b/net/http/http_cache_unittest.cc
index 8f5db81..1e3ed15 100644
--- a/net/http/http_cache_unittest.cc
+++ b/net/http/http_cache_unittest.cc
@@ -651,8 +651,7 @@ TEST(HttpCache, SimpleGET_AbandonedCacheRead) {
// Make sure we pump any pending events, which should include a call to
// HttpCache::Transaction::OnCacheReadCompleted.
- MessageLoop::current()->Quit();
- MessageLoop::current()->Run();
+ MessageLoop::current()->RunAllPending();
}
TEST(HttpCache, TypicalGET_ConditionalRequest) {
diff --git a/net/http/http_network_transaction_unittest.cc b/net/http/http_network_transaction_unittest.cc
index 2dc9721..7a891c7 100644
--- a/net/http/http_network_transaction_unittest.cc
+++ b/net/http/http_network_transaction_unittest.cc
@@ -248,8 +248,7 @@ TEST_F(HttpNetworkTransactionTest, SimpleGET) {
trans->Destroy();
// Empty the current queue.
- MessageLoop::current()->Quit();
- MessageLoop::current()->Run();
+ MessageLoop::current()->RunAllPending();
}
TEST_F(HttpNetworkTransactionTest, ReuseConnection) {
@@ -304,8 +303,7 @@ TEST_F(HttpNetworkTransactionTest, ReuseConnection) {
trans->Destroy();
// Empty the current queue.
- MessageLoop::current()->Quit();
- MessageLoop::current()->Run();
+ MessageLoop::current()->RunAllPending();
}
}
@@ -355,8 +353,7 @@ TEST_F(HttpNetworkTransactionTest, Ignores100) {
trans->Destroy();
// Empty the current queue.
- MessageLoop::current()->Quit();
- MessageLoop::current()->Run();
+ MessageLoop::current()->RunAllPending();
}
TEST_F(HttpNetworkTransactionTest, KeepAliveConnectionReset) {
@@ -419,7 +416,6 @@ TEST_F(HttpNetworkTransactionTest, KeepAliveConnectionReset) {
trans->Destroy();
// Empty the current queue.
- MessageLoop::current()->Quit();
- MessageLoop::current()->Run();
+ MessageLoop::current()->RunAllPending();
}
}