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

Unified Diff: chrome/browser/net/certificate_error_reporter_unittest.cc

Issue 1267383002: Allow preloaded pins to contain report URIs; remove special-case reporting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase fixup Created 5 years, 4 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: chrome/browser/net/certificate_error_reporter_unittest.cc
diff --git a/chrome/browser/net/certificate_error_reporter_unittest.cc b/chrome/browser/net/certificate_error_reporter_unittest.cc
index f154daf2b3d364de30b0a4d8f33cd22516f4517b..194d5695cc598bfa83de0d550dd036a0c30c7f5a 100644
--- a/chrome/browser/net/certificate_error_reporter_unittest.cc
+++ b/chrome/browser/net/certificate_error_reporter_unittest.cc
@@ -63,20 +63,6 @@ class CertificateErrorReporterTest : public ::testing::Test {
uint8_t server_private_key_[32];
};
-// Test that CertificateErrorReporter::SendPinningViolationReport sends
-// a plaintext report for pinning violation reports.
-TEST_F(CertificateErrorReporterTest, PinningViolationSendReport) {
- GURL url(kDummyHttpReportUri);
- MockCertificateReportSender* mock_report_sender =
- new MockCertificateReportSender();
- CertificateErrorReporter reporter(url, server_public_key_,
- kServerPublicKeyTestVersion,
- make_scoped_ptr(mock_report_sender));
- reporter.SendPinningViolationReport(kDummyReport);
- EXPECT_EQ(mock_report_sender->latest_report_uri(), url);
- EXPECT_EQ(mock_report_sender->latest_report(), kDummyReport);
-}
-
// Test that CertificateErrorReporter::SendExtendedReportingReport sends
// an encrypted or plaintext extended reporting report as appropriate.
TEST_F(CertificateErrorReporterTest, ExtendedReportingSendReport) {
« no previous file with comments | « chrome/browser/net/certificate_error_reporter.cc ('k') | chrome/browser/profiles/off_the_record_profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698