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

Data Structures

class  OtpTest
 
class  OtpReadTest
 
struct  DigestReadTestCase
 
class  OtpPartitionDigestTest
 
class  OtpDaiReadTest
 

Functions

 TEST_F (OtpTest, CreatorSwCfgLockdown)
 
 TEST_F (OtpReadTest, Read32)
 
 TEST_F (OtpReadTest, Read64)
 
 TEST_F (OtpReadTest, ReadLen32)
 
 TEST_F (OtpReadTest, ReadLen64)
 
 TEST_F (OtpReadTest, ReadLenN)
 
 TEST_P (OtpPartitionDigestTest, ReadDigest)
 
 INSTANTIATE_TEST_SUITE_P (ReadPartitionDigests, OtpPartitionDigestTest, testing::Values(DigestReadTestCase{ .partition=kOtpPartitionCreatorSwCfg,.digest_offest=OTP_CTRL_CREATOR_SW_CFG_DIGEST_0_REG_OFFSET, }, DigestReadTestCase{ .partition=kOtpPartitionOwnerSwCfg,.digest_offest=OTP_CTRL_OWNER_SW_CFG_DIGEST_0_REG_OFFSET, }, DigestReadTestCase{ .partition=kOtpPartitionRotCreatorAuthCodesign,.digest_offest=OTP_CTRL_ROT_CREATOR_AUTH_CODESIGN_DIGEST_0_REG_OFFSET, }, DigestReadTestCase{ .partition=kOtpPartitionRotCreatorAuthState,.digest_offest=OTP_CTRL_ROT_CREATOR_AUTH_STATE_DIGEST_0_REG_OFFSET, }, DigestReadTestCase{ .partition=kOtpPartitionHwCfg0,.digest_offest=OTP_CTRL_HW_CFG0_DIGEST_0_REG_OFFSET, }, DigestReadTestCase{ .partition=kOtpPartitionHwCfg1,.digest_offest=OTP_CTRL_HW_CFG1_DIGEST_0_REG_OFFSET, }))
 
 TEST_F (OtpDaiReadTest, Read32)
 
 TEST_F (OtpDaiReadTest, Read32WithIdleWait)
 
 TEST_F (OtpDaiReadTest, Read64)
 
 TEST_F (OtpDaiReadTest, Read64WithIdleWait)
 
 TEST_P (OtpDaiReadTest, ReadLenN32bitWords)
 
 INSTANTIATE_TEST_SUITE_P (Read32bitWordArrays, OtpDaiReadTest, testing::Range(0, kMaxOtpWordsToRead))
 

Variables

constexpr int kMaxOtpWordsToRead = 10
 

Data Structure Documentation

◆ otp_unittest::anonymous_namespace{otp_unittest.cc}::DigestReadTestCase

struct otp_unittest::anonymous_namespace{otp_unittest.cc}::DigestReadTestCase

Definition at line 92 of file otp_unittest.cc.

Data Fields
uint32_t digest_offest
otp_partition_t partition