Software APIs
Data Structures | Functions
sigverify_keys_unittest::anonymous_namespace{sigverify_keys_unittest.cc} Namespace Reference

Data Structures

class  SigverifyKeys
 
class  BadKeyIdTypeTest
 
class  BadKeyIdTypeDeathTest
 
class  KeyValidityTest
 Base class for paramaterized tests below. More...
 

Functions

std::vector< size_t > MockKeyIndicesOfType (sigverify_key_type_t key_type)
 Returns the indices of mock keys of the given type. More...
 
 TEST_F (BadKeyIdTypeTest, BadKeyId)
 
 TEST_F (BadKeyIdTypeDeathTest, BadKeyType)
 
 TEST_P (KeyValidityTest, Get)
 
 INSTANTIATE_TEST_SUITE_P (FirmwareProdKeys, KeyValidityTest, testing::ValuesIn(MockKeyIndicesOfType(kSigverifyKeyTypeFirmwareProd)))
 
 INSTANTIATE_TEST_SUITE_P (FirmwareTestKeys, KeyValidityTest, testing::ValuesIn(MockKeyIndicesOfType(kSigverifyKeyTypeFirmwareTest)))
 
 INSTANTIATE_TEST_SUITE_P (FirmwareDevKeys, KeyValidityTest, testing::ValuesIn(MockKeyIndicesOfType(kSigverifyKeyTypeFirmwareDev)))
 

Function Documentation

◆ MockKeyIndicesOfType()

std::vector<size_t> sigverify_keys_unittest::anonymous_namespace{sigverify_keys_unittest.cc}::MockKeyIndicesOfType ( sigverify_key_type_t  key_type)

Returns the indices of mock keys of the given type.

Parameters
key_typeA key type.
Returns
Indices of mock keys of the given type.

Definition at line 78 of file sigverify_keys_unittest.cc.