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

Unified Diff: net/cert/internal/verify_signed_data_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 | « net/cert/internal/verify_signed_data.cc ('k') | net/cert/jwk_serializer_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/internal/verify_signed_data_unittest.cc
diff --git a/net/cert/internal/verify_signed_data_unittest.cc b/net/cert/internal/verify_signed_data_unittest.cc
index 50586a1a5fd8da92ea7fbd09896df3bcab3e78cc..ba0fab2c21541fb634b7e649e381a03953371bb2 100644
--- a/net/cert/internal/verify_signed_data_unittest.cc
+++ b/net/cert/internal/verify_signed_data_unittest.cc
@@ -15,9 +15,7 @@
#include "net/der/parser.h"
#include "testing/gtest/include/gtest/gtest.h"
-#if defined(USE_OPENSSL)
#include <openssl/obj.h>
-#endif
namespace net {
@@ -39,11 +37,6 @@ enum VerifyResult {
void RunTestCaseUsingPolicy(VerifyResult expected_result,
const char* file_name,
const SignaturePolicy* policy) {
-#if !defined(USE_OPENSSL)
- LOG(INFO) << "Skipping test, only implemented for BoringSSL";
- return;
-#endif
-
std::string path =
std::string("net/data/verify_signed_data_unittest/") + file_name;
@@ -223,10 +216,8 @@ TEST(VerifySignedDataTest, EcdsaPrime256v1Sha512UnusedBitsSignature) {
class RejectSecp384r1Policy : public SignaturePolicy {
public:
bool IsAcceptableCurveForEcdsa(int curve_nid) const override {
-#if defined(USE_OPENSSL)
if (curve_nid == NID_secp384r1)
return false;
-#endif
return true;
}
};
« no previous file with comments | « net/cert/internal/verify_signed_data.cc ('k') | net/cert/jwk_serializer_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698