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

Unified Diff: android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc

Issue 2315863002: Remove calls to deprecated MessageLoop methods in android_webview. (Closed)
Patch Set: Created 4 years, 3 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 | android_webview/browser/test/rendering_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc
diff --git a/android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc b/android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc
index 5f1eaa1ac318c8f3ed45d0f8d756d7425dc9eec8..975794120e87fd8c9cde34d1298ddc0f6c91770c 100644
--- a/android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc
+++ b/android_webview/browser/net/android_stream_reader_url_request_job_unittest.cc
@@ -254,7 +254,7 @@ TEST_F(AndroidStreamReaderURLRequestJobTest, ReadEmptyStream) {
req_->Start();
// The TestDelegate will quit the message loop on request completion.
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
EXPECT_FALSE(url_request_delegate_.request_failed());
EXPECT_EQ(1, network_delegate_.completed_requests());
@@ -267,7 +267,7 @@ TEST_F(AndroidStreamReaderURLRequestJobTest, ReadWithNullStream) {
req_->Start();
// The TestDelegate will quit the message loop on request completion.
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
// The request_failed() method is named confusingly but all it checks is
// whether the request got as far as calling NotifyHeadersComplete.
@@ -283,7 +283,7 @@ TEST_F(AndroidStreamReaderURLRequestJobTest, ModifyHeadersAndStatus) {
req_->Start();
// The TestDelegate will quit the message loop on request completion.
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
// The request_failed() method is named confusingly but all it checks is
// whether the request got as far as calling NotifyHeadersComplete.
@@ -328,7 +328,7 @@ TEST_F(AndroidStreamReaderURLRequestJobTest, ReadPartOfStream) {
SetRange(req_.get(), offset, bytes_available);
req_->Start();
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
EXPECT_FALSE(url_request_delegate_.request_failed());
EXPECT_EQ(bytes_to_read, url_request_delegate_.bytes_received());
@@ -359,7 +359,7 @@ TEST_F(AndroidStreamReaderURLRequestJobTest,
SetRange(req_.get(), offset, bytes_available_reported);
req_->Start();
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
EXPECT_FALSE(url_request_delegate_.request_failed());
EXPECT_EQ(bytes_to_read, url_request_delegate_.bytes_received());
« no previous file with comments | « no previous file | android_webview/browser/test/rendering_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698