diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-29 09:07:42 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-29 09:07:42 +0200 |
commit | aff03b0a67c41cf7af5df9c9eef715a8b27a2667 (patch) | |
tree | aa2909ae4718f81c83c8cfb68c1f5a23485b3173 /security/nss/gtests/certdb_gtest/alg1485_unittest.cc | |
parent | bdb4ff581677ad1cd411b55a68c87534f9a64882 (diff) | |
parent | 11caf6ecb3cb8c84d2355a6c6e9580a290147e92 (diff) | |
download | UXP-aff03b0a67c41cf7af5df9c9eef715a8b27a2667.tar UXP-aff03b0a67c41cf7af5df9c9eef715a8b27a2667.tar.gz UXP-aff03b0a67c41cf7af5df9c9eef715a8b27a2667.tar.lz UXP-aff03b0a67c41cf7af5df9c9eef715a8b27a2667.tar.xz UXP-aff03b0a67c41cf7af5df9c9eef715a8b27a2667.zip |
Merge branch 'master' of https://github.com/MoonchildProductions/UXP into js_dom_performance-resource-timing_1
Diffstat (limited to 'security/nss/gtests/certdb_gtest/alg1485_unittest.cc')
-rw-r--r-- | security/nss/gtests/certdb_gtest/alg1485_unittest.cc | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/security/nss/gtests/certdb_gtest/alg1485_unittest.cc b/security/nss/gtests/certdb_gtest/alg1485_unittest.cc index ef6733092..b7c659414 100644 --- a/security/nss/gtests/certdb_gtest/alg1485_unittest.cc +++ b/security/nss/gtests/certdb_gtest/alg1485_unittest.cc @@ -10,7 +10,6 @@ #include "nss.h" #include "scoped_ptrs.h" -#include "prprf.h" namespace nss_test { @@ -90,23 +89,4 @@ INSTANTIATE_TEST_CASE_P(ParseAVAStrings, Alg1485ParseTest, ::testing::ValuesIn(kAVATestStrings)); INSTANTIATE_TEST_CASE_P(CompareAVAStrings, Alg1485CompareTest, ::testing::ValuesIn(kAVACompareStrings)); - -TEST_F(Alg1485Test, ShortOIDTest) { - // This is not a valid OID (too short). CERT_GetOidString should return 0. - unsigned char data[] = {0x05}; - const SECItem oid = {siBuffer, data, sizeof(data)}; - char* result = CERT_GetOidString(&oid); - EXPECT_EQ(result, nullptr); -} - -TEST_F(Alg1485Test, BrokenOIDTest) { - // This is not a valid OID (first bit of last byte is not set). - // CERT_GetOidString should return 0. - unsigned char data[] = {0x81, 0x82, 0x83, 0x84}; - const SECItem oid = {siBuffer, data, sizeof(data)}; - char* result = CERT_GetOidString(&oid); - EXPECT_EQ(15U, strlen(result)); - EXPECT_EQ(0, strncmp("OID.UNSUPPORTED", result, 15)); - PR_smprintf_free(result); -} } |