Lines Matching refs:AddressObfuscator

23 using bluetooth::common::AddressObfuscator;
25 constexpr AddressObfuscator::Octet32 kEmptyKey = {0};
27 constexpr AddressObfuscator::Octet32 kTestKey1 = {
33 constexpr AddressObfuscator::Octet32 kTestResultRaw1 = {
41 constexpr AddressObfuscator::Octet32 kTestKey2 = {
47 constexpr AddressObfuscator::Octet32 kTestResultRaw2_1 = {
56 constexpr AddressObfuscator::Octet32 kTestResultRaw2_2 = {
65 constexpr AddressObfuscator::Octet32 kTestResultRaw2_3 = {
74 EXPECT_FALSE(AddressObfuscator::IsSaltValid(kEmptyKey)); in TEST()
78 EXPECT_TRUE(AddressObfuscator::IsSaltValid(kTestKey1)); in TEST()
82 AddressObfuscator::GetInstance()->Initialize(kEmptyKey); in TEST()
83 EXPECT_FALSE(AddressObfuscator::GetInstance()->IsInitialized()); in TEST()
87 AddressObfuscator::GetInstance()->Initialize(kTestKey1); in TEST()
88 EXPECT_TRUE(AddressObfuscator::GetInstance()->IsInitialized()); in TEST()
92 AddressObfuscator::GetInstance()->Initialize(kTestKey1); in TEST()
93 std::string result = AddressObfuscator::GetInstance()->Obfuscate(kTestData1); in TEST()
94 EXPECT_EQ(result.size(), AddressObfuscator::kOctet32Length); in TEST()
99 AddressObfuscator::GetInstance()->Initialize(kTestKey2); in TEST()
101 AddressObfuscator::GetInstance()->Obfuscate(kTestData2_1); in TEST()
102 EXPECT_EQ(result.size(), AddressObfuscator::kOctet32Length); in TEST()
107 AddressObfuscator::GetInstance()->Initialize(kTestKey2); in TEST()
109 AddressObfuscator::GetInstance()->Obfuscate(kTestData2_2); in TEST()
110 EXPECT_EQ(result.size(), AddressObfuscator::kOctet32Length); in TEST()
115 AddressObfuscator::GetInstance()->Initialize(kTestKey2); in TEST()
117 AddressObfuscator::GetInstance()->Obfuscate(kTestData2_3); in TEST()
118 EXPECT_EQ(result.size(), AddressObfuscator::kOctet32Length); in TEST()