mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 02:47:31 +09:00
re-introduce old nss im too tired for this
This commit is contained in:
parent
3c46be320d
commit
3a838106b9
2871 changed files with 1374431 additions and 1762417 deletions
|
|
@ -56,10 +56,10 @@ TEST_P(Blake2BKATKeyed, Keyed) {
|
|||
EXPECT_EQ(values, std::get<1>(GetParam()));
|
||||
}
|
||||
|
||||
INSTANTIATE_TEST_SUITE_P(UnkeyedKAT, Blake2BKATUnkeyed,
|
||||
::testing::ValuesIn(TestcasesUnkeyed));
|
||||
INSTANTIATE_TEST_SUITE_P(KeyedKAT, Blake2BKATKeyed,
|
||||
::testing::ValuesIn(TestcasesKeyed));
|
||||
INSTANTIATE_TEST_CASE_P(UnkeyedKAT, Blake2BKATUnkeyed,
|
||||
::testing::ValuesIn(TestcasesUnkeyed));
|
||||
INSTANTIATE_TEST_CASE_P(KeyedKAT, Blake2BKATKeyed,
|
||||
::testing::ValuesIn(TestcasesKeyed));
|
||||
|
||||
TEST_F(Blake2BTests, ContextTest) {
|
||||
ScopedBLAKE2BContext ctx(BLAKE2B_NewContext());
|
||||
|
|
@ -271,3 +271,19 @@ TEST_F(Blake2BTests, EmptyKeyTest) {
|
|||
EXPECT_EQ(SECFailure, rv);
|
||||
EXPECT_EQ(SEC_ERROR_INVALID_ARGS, PORT_GetError());
|
||||
}
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
::testing::InitGoogleTest(&argc, argv);
|
||||
|
||||
if (NSS_NoDB_Init(nullptr) != SECSuccess) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
int rv = RUN_ALL_TESTS();
|
||||
|
||||
if (NSS_Shutdown() != SECSuccess) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue