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

Unified Diff: chrome/browser/chromeos/drive/drive_url_request_job_unittest.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 7 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
Index: chrome/browser/chromeos/drive/drive_url_request_job_unittest.cc
diff --git a/chrome/browser/chromeos/drive/drive_url_request_job_unittest.cc b/chrome/browser/chromeos/drive/drive_url_request_job_unittest.cc
index 5274ce4f3badf8e1c4ecc157814c6be6e2e5523f..c5ca7df33247191ed47ab681a0bb2e33daca3593 100644
--- a/chrome/browser/chromeos/drive/drive_url_request_job_unittest.cc
+++ b/chrome/browser/chromeos/drive/drive_url_request_job_unittest.cc
@@ -202,7 +202,7 @@ class DriveURLRequestJobTest : public testing::Test {
return true;
}
- MessageLoopForIO message_loop_;
+ base::MessageLoopForIO message_loop_;
content::TestBrowserThread ui_thread_;
content::TestBrowserThread io_thread_;
@@ -222,7 +222,7 @@ TEST_F(DriveURLRequestJobTest, NonGetMethod) {
request.set_method("POST"); // Set non "GET" method.
request.Start();
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
EXPECT_EQ(net::URLRequestStatus::FAILED, request.status().status());
EXPECT_EQ(net::ERR_METHOD_NOT_SUPPORTED, request.status().error());
@@ -239,7 +239,7 @@ TEST_F(DriveURLRequestJobTest, RegularFile) {
url_request_context_.get(), test_network_delegate_.get());
request.Start();
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
EXPECT_EQ(net::URLRequestStatus::SUCCESS, request.status().status());
// It looks weird, but the mime type for the "File 1.txt" is "audio/mpeg"
@@ -264,7 +264,7 @@ TEST_F(DriveURLRequestJobTest, RegularFile) {
url_request_context_.get(), test_network_delegate_.get());
request.Start();
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
EXPECT_EQ(net::URLRequestStatus::SUCCESS, request.status().status());
std::string mime_type;
@@ -286,7 +286,7 @@ TEST_F(DriveURLRequestJobTest, HostedDocument) {
url_request_context_.get(), test_network_delegate_.get());
request.Start();
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
EXPECT_EQ(net::URLRequestStatus::SUCCESS, request.status().status());
// Make sure that a hosted document triggers redirection.
@@ -301,7 +301,7 @@ TEST_F(DriveURLRequestJobTest, RootDirectory) {
url_request_context_.get(), test_network_delegate_.get());
request.Start();
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
EXPECT_EQ(net::URLRequestStatus::FAILED, request.status().status());
EXPECT_EQ(net::ERR_FAILED, request.status().error());
@@ -313,7 +313,7 @@ TEST_F(DriveURLRequestJobTest, Directory) {
url_request_context_.get(), test_network_delegate_.get());
request.Start();
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
EXPECT_EQ(net::URLRequestStatus::FAILED, request.status().status());
EXPECT_EQ(net::ERR_FAILED, request.status().error());
@@ -325,7 +325,7 @@ TEST_F(DriveURLRequestJobTest, NonExistingFile) {
url_request_context_.get(), test_network_delegate_.get());
request.Start();
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
EXPECT_EQ(net::URLRequestStatus::FAILED, request.status().status());
EXPECT_EQ(net::ERR_FILE_NOT_FOUND, request.status().error());
@@ -337,7 +337,7 @@ TEST_F(DriveURLRequestJobTest, WrongFormat) {
url_request_context_.get(), test_network_delegate_.get());
request.Start();
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
EXPECT_EQ(net::URLRequestStatus::FAILED, request.status().status());
EXPECT_EQ(net::ERR_INVALID_URL, request.status().error());
@@ -352,7 +352,7 @@ TEST_F(DriveURLRequestJobTest, Cancel) {
request.Start();
request.Cancel();
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
EXPECT_EQ(net::URLRequestStatus::CANCELED, request.status().status());
}
@@ -370,7 +370,7 @@ TEST_F(DriveURLRequestJobTest, RangeHeader) {
"Range", "bytes=3-5", false /* overwrite */);
request.Start();
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
EXPECT_EQ(net::URLRequestStatus::SUCCESS, request.status().status());
@@ -393,7 +393,7 @@ TEST_F(DriveURLRequestJobTest, WrongRangeHeader) {
"Range", "Wrong Range Header Value", false /* overwrite */);
request.Start();
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
EXPECT_EQ(net::URLRequestStatus::FAILED, request.status().status());
EXPECT_EQ(net::ERR_REQUEST_RANGE_NOT_SATISFIABLE, request.status().error());

Powered by Google App Engine
This is Rietveld 408576698