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

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

Issue 13079008: Make use of network delegate explicit in drive unit tests using TestURLRequest. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 7 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2a8af507c2e5fba24693dceaecc10523a3f90362..b76d4fb2bce05ed3cb659b0197054c5c91601b6d 100644
--- a/chrome/browser/chromeos/drive/drive_url_request_job_unittest.cc
+++ b/chrome/browser/chromeos/drive/drive_url_request_job_unittest.cc
@@ -45,7 +45,8 @@ class DriveURLRequestJobTest : public testing::Test {
TEST_F(DriveURLRequestJobTest, NonGetMethod) {
net::TestURLRequest request(
- GURL("drive:file_id"), delegate_.get(), url_request_context_.get());
+ GURL("drive:file_id"),
+ delegate_.get(), url_request_context_.get(), network_delegate_.get());
hshi1 2013/03/26 03:50:14 If they do not fit one line, then it is recommende
request.set_method("POST"); // Set non "GET" method.
scoped_refptr<DriveURLRequestJob> job(
@@ -62,7 +63,7 @@ TEST_F(DriveURLRequestJobTest, NonGetMethod) {
TEST_F(DriveURLRequestJobTest, NonDriveScheme) {
net::TestURLRequest request(
GURL("http://www.google.com"),
- delegate_.get(), url_request_context_.get());
+ delegate_.get(), url_request_context_.get(), network_delegate_.get());
hshi1 2013/03/26 03:50:14 Same as above.
scoped_refptr<DriveURLRequestJob> job(
new DriveURLRequestJob(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698