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

Unified Diff: components/certificate_reporting/error_reporter_unittest.cc

Issue 2851493003: Remove unused CookiePreferences from report sender and never send cookies (Closed)
Patch Set: Fix rebase Created 3 years, 8 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/certificate_reporting/error_reporter_unittest.cc
diff --git a/components/certificate_reporting/error_reporter_unittest.cc b/components/certificate_reporting/error_reporter_unittest.cc
index 66d84b28662de4fc43ab9270eaa351b00ab1acb3..b613788b195c51f7e3b60c1775f103e0fbb61196 100644
--- a/components/certificate_reporting/error_reporter_unittest.cc
+++ b/components/certificate_reporting/error_reporter_unittest.cc
@@ -51,8 +51,7 @@ void SuccessCallback(bool* called) {
// sent.
class MockCertificateReportSender : public net::ReportSender {
public:
- MockCertificateReportSender()
- : net::ReportSender(nullptr, DO_NOT_SEND_COOKIES) {}
+ MockCertificateReportSender() : net::ReportSender(nullptr) {}
~MockCertificateReportSender() override {}
void Send(const GURL& report_uri,
@@ -179,8 +178,7 @@ TEST_F(ErrorReporterTest, ErroredRequestCallsCallback) {
const GURL report_uri(
net::URLRequestFailedJob::GetMockHttpUrl(net::ERR_CONNECTION_FAILED));
- ErrorReporter reporter(&context, report_uri,
- net::ReportSender::DO_NOT_SEND_COOKIES);
+ ErrorReporter reporter(&context, report_uri);
bool error_callback_called = false;
bool success_callback_called = false;
@@ -206,8 +204,7 @@ TEST_F(ErrorReporterTest, SuccessfulRequestCallsCallback) {
const GURL report_uri(
net::URLRequestMockDataJob::GetMockHttpUrl("some data", 1));
- ErrorReporter reporter(&context, report_uri,
- net::ReportSender::DO_NOT_SEND_COOKIES);
+ ErrorReporter reporter(&context, report_uri);
bool error_callback_called = false;
bool success_callback_called = false;
« no previous file with comments | « components/certificate_reporting/error_reporter.cc ('k') | ios/chrome/browser/browser_state/chrome_browser_state_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698