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

Unified Diff: ios/net/protocol_handler_util_unittest.mm

Issue 1003953008: Remove prerender cookie store, part 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prerender-revert-cookie-store-3
Patch Set: rebase (just in case since this is so huge) Created 5 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 | « ios/net/crn_http_protocol_handler.mm ('k') | mojo/services/network/url_loader_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/net/protocol_handler_util_unittest.mm
diff --git a/ios/net/protocol_handler_util_unittest.mm b/ios/net/protocol_handler_util_unittest.mm
index d2bdc72ce4b21d6aa024805bdc50bb2858d0cb5e..da39df6fd37e6f053df45b72f3341b5ae09639f3 100644
--- a/ios/net/protocol_handler_util_unittest.mm
+++ b/ios/net/protocol_handler_util_unittest.mm
@@ -127,7 +127,7 @@ class ProtocolHandlerUtilTest : public testing::Test,
GURL url(url_string);
scoped_ptr<URLRequest> request(
- request_context_->CreateRequest(url, DEFAULT_PRIORITY, this, nullptr));
+ request_context_->CreateRequest(url, DEFAULT_PRIORITY, this));
request->Start();
base::RunLoop loop;
loop.RunUntilIdle();
@@ -169,7 +169,7 @@ TEST_F(ProtocolHandlerUtilTest, GetResponseHttpTest) {
// Create a request.
GURL url(std::string("http://url"));
scoped_ptr<URLRequest> request(
- request_context_->CreateRequest(url, DEFAULT_PRIORITY, this, nullptr));
+ request_context_->CreateRequest(url, DEFAULT_PRIORITY, this));
request->Start();
// Create a response from the request.
NSURLResponse* response = GetNSURLResponseForRequest(request.get());
@@ -196,7 +196,7 @@ TEST_F(ProtocolHandlerUtilTest, BadHttpContentType) {
// content-type in the test framework.
GURL url(std::string("http://badcontenttype"));
scoped_ptr<URLRequest> request(
- request_context_->CreateRequest(url, DEFAULT_PRIORITY, this, nullptr));
+ request_context_->CreateRequest(url, DEFAULT_PRIORITY, this));
request->Start();
// Create a response from the request.
@try {
@@ -212,7 +212,7 @@ TEST_F(ProtocolHandlerUtilTest, MultipleHttpContentType) {
// content-type in the test framework.
GURL url(std::string("http://multiplecontenttype"));
scoped_ptr<URLRequest> request(
- request_context_->CreateRequest(url, DEFAULT_PRIORITY, this, nullptr));
+ request_context_->CreateRequest(url, DEFAULT_PRIORITY, this));
request->Start();
// Create a response from the request.
NSURLResponse* response = GetNSURLResponseForRequest(request.get());
@@ -235,7 +235,7 @@ TEST_F(ProtocolHandlerUtilTest, CopyHttpHeaders) {
@"Foo" : @"bar",
}];
scoped_ptr<URLRequest> out_request(
- request_context_->CreateRequest(url, DEFAULT_PRIORITY, nullptr, nullptr));
+ request_context_->CreateRequest(url, DEFAULT_PRIORITY, nullptr));
CopyHttpHeaders(in_request, out_request.get());
EXPECT_EQ("referrer", out_request->referrer());
@@ -254,7 +254,7 @@ TEST_F(ProtocolHandlerUtilTest, AddMissingHeaders) {
base::scoped_nsobject<NSMutableURLRequest> in_request(
[[NSMutableURLRequest alloc] initWithURL:NSURLWithGURL(url)]);
scoped_ptr<URLRequest> out_request(
- request_context_->CreateRequest(url, DEFAULT_PRIORITY, nullptr, nullptr));
+ request_context_->CreateRequest(url, DEFAULT_PRIORITY, nullptr));
out_request->set_method("POST");
scoped_ptr<UploadElementReader> reader(
new UploadBytesElementReader(nullptr, 0));
« no previous file with comments | « ios/net/crn_http_protocol_handler.mm ('k') | mojo/services/network/url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698