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

Unified Diff: chrome/browser/ssl/certificate_reporting_test_utils.cc

Issue 2026213002: Refactor CertificateReportSender (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | « chrome/browser/safe_browsing/ping_manager.cc ('k') | chrome/browser/ssl/chrome_expect_ct_reporter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ssl/certificate_reporting_test_utils.cc
diff --git a/chrome/browser/ssl/certificate_reporting_test_utils.cc b/chrome/browser/ssl/certificate_reporting_test_utils.cc
index 013cdf26cf2e39320b4194abb9e7271d0f729d0a..55aa0e206702ac38c547c21f9f6384732ebe85a8 100644
--- a/chrome/browser/ssl/certificate_reporting_test_utils.cc
+++ b/chrome/browser/ssl/certificate_reporting_test_utils.cc
@@ -25,7 +25,7 @@
#include "components/certificate_reporting/error_reporter.h"
#include "components/prefs/pref_service.h"
#include "components/variations/variations_associated_data.h"
-#include "net/url_request/certificate_report_sender.h"
+#include "net/url_request/report_sender.h"
#include "net/url_request/url_request_context.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
@@ -88,10 +88,9 @@ namespace certificate_reporting_test_utils {
class CertificateReportingTest::MockReporter
: public certificate_reporting::ErrorReporter {
public:
- MockReporter(
- net::URLRequestContext* request_context,
- const GURL& upload_url,
- net::CertificateReportSender::CookiesPreference cookies_preference);
+ MockReporter(net::URLRequestContext* request_context,
+ const GURL& upload_url,
+ net::ReportSender::CookiesPreference cookies_preference);
// ErrorReporter implementation.
void SendExtendedReportingReport(
@@ -112,7 +111,7 @@ class CertificateReportingTest::MockReporter
CertificateReportingTest::MockReporter::MockReporter(
net::URLRequestContext* request_context,
const GURL& upload_url,
- net::CertificateReportSender::CookiesPreference cookies_preference)
+ net::ReportSender::CookiesPreference cookies_preference)
: certificate_reporting::ErrorReporter(request_context,
upload_url,
cookies_preference) {}
@@ -132,7 +131,7 @@ void CertificateReportingTest::SetUpMockReporter() {
// reporter would have to be constructed on the IO thread.)
reporter_ = new CertificateReportingTest::MockReporter(
nullptr, GURL("http://example.test"),
- net::CertificateReportSender::DO_NOT_SEND_COOKIES);
+ net::ReportSender::DO_NOT_SEND_COOKIES);
scoped_refptr<SafeBrowsingService> safe_browsing_service =
g_browser_process->safe_browsing_service();
« no previous file with comments | « chrome/browser/safe_browsing/ping_manager.cc ('k') | chrome/browser/ssl/chrome_expect_ct_reporter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698