diff options
Diffstat (limited to 'net/http/http_network_transaction_unittest.cc')
-rw-r--r-- | net/http/http_network_transaction_unittest.cc | 12 |
1 files changed, 4 insertions, 8 deletions
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(); } } |