summaryrefslogtreecommitdiff
path: root/net/android/traffic_stats_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/android/traffic_stats_unittest.cc')
-rw-r--r--net/android/traffic_stats_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/android/traffic_stats_unittest.cc b/net/android/traffic_stats_unittest.cc
index 1e707c31b..88679c28f 100644
--- a/net/android/traffic_stats_unittest.cc
+++ b/net/android/traffic_stats_unittest.cc
@@ -42,7 +42,7 @@ TEST(TrafficStatsAndroidTest, BasicsTest) {
context->CreateRequest(embedded_test_server.GetURL("/echo.html"),
DEFAULT_PRIORITY, &test_delegate));
request->Start();
- base::RunLoop().Run();
+ test_delegate.RunUntilComplete();
// Bytes should increase because of the network traffic.
int64_t tx_bytes_after_request = -1;
@@ -78,7 +78,7 @@ TEST(TrafficStatsAndroidTest, UIDBasicsTest) {
context->CreateRequest(embedded_test_server.GetURL("/echo.html"),
DEFAULT_PRIORITY, &test_delegate));
request->Start();
- base::RunLoop().Run();
+ test_delegate.RunUntilComplete();
// Bytes should increase because of the network traffic.
int64_t tx_bytes_after_request = -1;