Home
last modified time | relevance | path

Searched refs:expectedKeyLength (Results 1 – 1 of 1) sorted by relevance

/openthread-3.6.0/tests/unit/
Dtest_dns.cpp1571 uint8_t expectedKeyLength = static_cast<uint8_t>(strlen(expectedTxtEntry.mKey)); in TestDnsTxtEntry() local
1576 if (expectedKeyLength > Dns::TxtEntry::kMaxIterKeyLength) in TestDnsTxtEntry()
1583 …VerifyOrQuit(txtEntry.mValueLength == expectedKeyLength + expectedTxtEntry.mValueLength + sizeof(c… in TestDnsTxtEntry()
1585 VerifyOrQuit(memcmp(txtEntry.mValue, expectedTxtEntry.mKey, expectedKeyLength) == 0); in TestDnsTxtEntry()
1586 VerifyOrQuit(txtEntry.mValue[expectedKeyLength] == static_cast<uint8_t>('=')); in TestDnsTxtEntry()
1587 …VerifyOrQuit(memcmp(&txtEntry.mValue[expectedKeyLength + sizeof(uint8_t)], expectedTxtEntry.mValue, in TestDnsTxtEntry()