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

Unified Diff: components/domain_reliability/uploader_unittest.cc

Issue 290093002: Domain Reliability: Test that uploads do not save/send cookies (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 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
« 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: components/domain_reliability/uploader_unittest.cc
diff --git a/components/domain_reliability/uploader_unittest.cc b/components/domain_reliability/uploader_unittest.cc
index 89a75e590bdf046cf576d86250e9fa75757f550d..02e9287718168de1ac3081d58437e60f85f24c9c 100644
--- a/components/domain_reliability/uploader_unittest.cc
+++ b/components/domain_reliability/uploader_unittest.cc
@@ -64,13 +64,15 @@ TEST_F(DomainReliabilityUploaderTest, SuccessfulUpload) {
net::TestURLFetcher* fetcher;
std::string report_json = "{}";
- GURL upload_url = GURL("https://test.example/upload");
+ GURL upload_url = GURL("https://example/upload");
uploader_->UploadReport(report_json, upload_url, MakeUploadCallback(0));
fetcher = url_fetcher_factory_.GetFetcherByID(0);
EXPECT_TRUE(fetcher);
EXPECT_EQ(report_json, fetcher->upload_data());
EXPECT_EQ(upload_url, fetcher->GetOriginalURL());
+ EXPECT_TRUE(fetcher->GetLoadFlags() & net::LOAD_DO_NOT_SAVE_COOKIES);
+ EXPECT_TRUE(fetcher->GetLoadFlags() & net::LOAD_DO_NOT_SEND_COOKIES);
fetcher->set_url(upload_url);
fetcher->set_status(net::URLRequestStatus());
@@ -87,7 +89,7 @@ TEST_F(DomainReliabilityUploaderTest, FailedUpload) {
net::TestURLFetcher* fetcher;
std::string report_json = "{}";
- GURL upload_url = GURL("https://test.example/upload");
+ GURL upload_url = GURL("https://example/upload");
uploader_->UploadReport(report_json, upload_url, MakeUploadCallback(0));
fetcher = url_fetcher_factory_.GetFetcherByID(0);
« 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