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

Unified Diff: components/certificate_reporting/error_reporter_unittest.cc

Issue 1882433002: Removing NSS files and USE_OPENSSL flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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
« no previous file with comments | « components/certificate_reporting/error_reporter.cc ('k') | components/components_tests.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ac8ec389083057f075549473a03fa0d6a4dab108..e38a47c631461e5132fb06c7212cf1e6430c2efa 100644
--- a/components/certificate_reporting/error_reporter_unittest.cc
+++ b/components/certificate_reporting/error_reporter_unittest.cc
@@ -92,7 +92,6 @@ TEST_F(ErrorReporterTest, ExtendedReportingSendReport) {
EXPECT_EQ(http_mock_report_sender->latest_report_uri(), http_url);
std::string uploaded_report;
-#if defined(USE_OPENSSL)
EncryptedCertLoggerRequest encrypted_request;
ASSERT_TRUE(encrypted_request.ParseFromString(
http_mock_report_sender->latest_report()));
@@ -102,15 +101,11 @@ TEST_F(ErrorReporterTest, ExtendedReportingSendReport) {
encrypted_request.algorithm());
ASSERT_TRUE(ErrorReporter::DecryptErrorReport(
server_private_key_, encrypted_request, &uploaded_report));
-#else
- ADD_FAILURE() << "Only supported in OpenSSL ports";
-#endif
EXPECT_EQ(kDummyReport, uploaded_report);
}
}
-#if defined(USE_OPENSSL)
// This test decrypts a "known gold" report. It's intentionally brittle
// in order to catch changes in report encryption that could cause the
// server to no longer be able to decrypt reports that it receives from
@@ -270,7 +265,6 @@ TEST_F(ErrorReporterTest, DecryptExampleReport) {
ASSERT_TRUE(ErrorReporter::DecryptErrorReport(
server_private_key_, encrypted_request, &decrypted_serialized_report));
}
-#endif
} // namespace
« no previous file with comments | « components/certificate_reporting/error_reporter.cc ('k') | components/components_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698