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

Unified Diff: components/policy/core/common/cloud/policy_header_io_helper_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: components/policy/core/common/cloud/policy_header_io_helper_unittest.cc
diff --git a/components/policy/core/common/cloud/policy_header_io_helper_unittest.cc b/components/policy/core/common/cloud/policy_header_io_helper_unittest.cc
index cbec8f39c678fc6d43f09e41f562001ef74e2289..3a5adf8d56e4aa98fb0e07e71165eed9e4867a56 100644
--- a/components/policy/core/common/cloud/policy_header_io_helper_unittest.cc
+++ b/components/policy/core/common/cloud/policy_header_io_helper_unittest.cc
@@ -52,14 +52,14 @@ class PolicyHeaderIOHelperTest : public testing::Test {
TEST_F(PolicyHeaderIOHelperTest, InitialHeader) {
scoped_ptr<net::URLRequest> request(context_.CreateRequest(
- GURL(kDMServerURL), net::DEFAULT_PRIORITY, NULL, NULL));
+ GURL(kDMServerURL), net::DEFAULT_PRIORITY, NULL));
helper_->AddPolicyHeaders(request->url(), request.get());
ValidateHeader(request->extra_request_headers(), kInitialPolicyHeader);
}
TEST_F(PolicyHeaderIOHelperTest, NoHeaderOnNonMatchingURL) {
scoped_ptr<net::URLRequest> request(context_.CreateRequest(
- GURL("http://non-matching.com"), net::DEFAULT_PRIORITY, NULL, NULL));
+ GURL("http://non-matching.com"), net::DEFAULT_PRIORITY, NULL));
helper_->AddPolicyHeaders(request->url(), request.get());
EXPECT_TRUE(request->extra_request_headers().IsEmpty());
}
@@ -69,7 +69,7 @@ TEST_F(PolicyHeaderIOHelperTest, HeaderChange) {
helper_->UpdateHeader(new_header);
task_runner_->RunUntilIdle();
scoped_ptr<net::URLRequest> request(context_.CreateRequest(
- GURL(kDMServerURL), net::DEFAULT_PRIORITY, NULL, NULL));
+ GURL(kDMServerURL), net::DEFAULT_PRIORITY, NULL));
helper_->AddPolicyHeaders(request->url(), request.get());
ValidateHeader(request->extra_request_headers(), new_header);
}
@@ -78,7 +78,7 @@ TEST_F(PolicyHeaderIOHelperTest, ChangeToNoHeader) {
helper_->UpdateHeader("");
task_runner_->RunUntilIdle();
scoped_ptr<net::URLRequest> request(context_.CreateRequest(
- GURL(kDMServerURL), net::DEFAULT_PRIORITY, NULL, NULL));
+ GURL(kDMServerURL), net::DEFAULT_PRIORITY, NULL));
helper_->AddPolicyHeaders(request->url(), request.get());
EXPECT_TRUE(request->extra_request_headers().IsEmpty());
}

Powered by Google App Engine
This is Rietveld 408576698