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

Unified Diff: content/browser/service_worker/service_worker_url_request_job_unittest.cc

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
Index: content/browser/service_worker/service_worker_url_request_job_unittest.cc
diff --git a/content/browser/service_worker/service_worker_url_request_job_unittest.cc b/content/browser/service_worker/service_worker_url_request_job_unittest.cc
index 701f392b04877fc8b8d2a710d09b7991e605e194..cbf48a92242d45b4949cd6466ea358307ed89590 100644
--- a/content/browser/service_worker/service_worker_url_request_job_unittest.cc
+++ b/content/browser/service_worker/service_worker_url_request_job_unittest.cc
@@ -192,10 +192,8 @@ class ServiceWorkerURLRequestJobTest : public testing::Test {
const std::string& expected_status_text,
const std::string& expected_response) {
request_ = url_request_context_.CreateRequest(
- GURL("http://example.com/foo.html"),
- net::DEFAULT_PRIORITY,
- &url_request_delegate_,
- nullptr);
+ GURL("http://example.com/foo.html"), net::DEFAULT_PRIORITY,
+ &url_request_delegate_);
request_->set_method("GET");
request_->Start();
@@ -342,10 +340,8 @@ TEST_F(ServiceWorkerURLRequestJobTest, StreamResponse) {
SetUpWithHelper(new StreamResponder(kProcessID, stream_url));
version_->SetStatus(ServiceWorkerVersion::ACTIVATED);
request_ = url_request_context_.CreateRequest(
- GURL("http://example.com/foo.html"),
- net::DEFAULT_PRIORITY,
- &url_request_delegate_,
- nullptr);
+ GURL("http://example.com/foo.html"), net::DEFAULT_PRIORITY,
+ &url_request_delegate_);
request_->set_method("GET");
request_->Start();
@@ -379,10 +375,8 @@ TEST_F(ServiceWorkerURLRequestJobTest, StreamResponse_DelayedRegistration) {
version_->SetStatus(ServiceWorkerVersion::ACTIVATED);
request_ = url_request_context_.CreateRequest(
- GURL("http://example.com/foo.html"),
- net::DEFAULT_PRIORITY,
- &url_request_delegate_,
- nullptr);
+ GURL("http://example.com/foo.html"), net::DEFAULT_PRIORITY,
+ &url_request_delegate_);
request_->set_method("GET");
request_->Start();
@@ -428,10 +422,8 @@ TEST_F(ServiceWorkerURLRequestJobTest, StreamResponse_QuickFinalize) {
version_->SetStatus(ServiceWorkerVersion::ACTIVATED);
request_ = url_request_context_.CreateRequest(
- GURL("http://example.com/foo.html"),
- net::DEFAULT_PRIORITY,
- &url_request_delegate_,
- nullptr);
+ GURL("http://example.com/foo.html"), net::DEFAULT_PRIORITY,
+ &url_request_delegate_);
request_->set_method("GET");
request_->Start();
EXPECT_FALSE(HasInflightRequests());
@@ -459,10 +451,8 @@ TEST_F(ServiceWorkerURLRequestJobTest, StreamResponse_Flush) {
version_->SetStatus(ServiceWorkerVersion::ACTIVATED);
request_ = url_request_context_.CreateRequest(
- GURL("http://example.com/foo.html"),
- net::DEFAULT_PRIORITY,
- &url_request_delegate_,
- nullptr);
+ GURL("http://example.com/foo.html"), net::DEFAULT_PRIORITY,
+ &url_request_delegate_);
request_->set_method("GET");
request_->Start();
std::string expected_response;
@@ -497,10 +487,8 @@ TEST_F(ServiceWorkerURLRequestJobTest, StreamResponseAndCancel) {
version_->SetStatus(ServiceWorkerVersion::ACTIVATED);
request_ = url_request_context_.CreateRequest(
- GURL("http://example.com/foo.html"),
- net::DEFAULT_PRIORITY,
- &url_request_delegate_,
- nullptr);
+ GURL("http://example.com/foo.html"), net::DEFAULT_PRIORITY,
+ &url_request_delegate_);
request_->set_method("GET");
request_->Start();
EXPECT_FALSE(HasInflightRequests());
@@ -537,10 +525,8 @@ TEST_F(ServiceWorkerURLRequestJobTest,
version_->SetStatus(ServiceWorkerVersion::ACTIVATED);
request_ = url_request_context_.CreateRequest(
- GURL("http://example.com/foo.html"),
- net::DEFAULT_PRIORITY,
- &url_request_delegate_,
- nullptr);
+ GURL("http://example.com/foo.html"), net::DEFAULT_PRIORITY,
+ &url_request_delegate_);
request_->set_method("GET");
request_->Start();
EXPECT_FALSE(HasInflightRequests());

Powered by Google App Engine
This is Rietveld 408576698