Home
last modified time | relevance | path

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

/openthread-latest/tests/unit/
Dtest_lowpan.cpp281 TestIphcVector testVector("Fully compressible IPv6 addresses using long MAC addresses"); in TestFullyCompressableLongAddresses() local
284 testVector.SetMacSource(sTestMacSourceDefaultLong); in TestFullyCompressableLongAddresses()
285 testVector.SetMacDestination(sTestMacDestinationDefaultLong); in TestFullyCompressableLongAddresses()
288testVector.SetIpHeader(0x60000000, sizeof(sTestPayloadDefault), Ip6::kProtoIcmp6, 64, "fe80::200:5… in TestFullyCompressableLongAddresses()
293 testVector.SetIphcHeader(iphc, sizeof(iphc)); in TestFullyCompressableLongAddresses()
296 testVector.SetPayload(sTestPayloadDefault, sizeof(sTestPayloadDefault)); in TestFullyCompressableLongAddresses()
297 testVector.SetPayloadOffset(40); in TestFullyCompressableLongAddresses()
298 testVector.SetError(kErrorNone); in TestFullyCompressableLongAddresses()
301 Test(testVector, true, true); in TestFullyCompressableLongAddresses()
306 TestIphcVector testVector("Fully compressible IPv6 addresses using short MAC addresses"); in TestFullyCompressableShortAddresses() local
[all …]
Dtest_ip_address.cpp167 for (Ip6AddressTestVector &testVector : testVectors) in TestIp6AddressFromString()
169 checkAddressFromString(&testVector); in TestIp6AddressFromString()
174 for (Ip6AddressTestVector &testVector : testVectors) in TestIp6AddressFromString()
182 length = StringLength(testVector.mString, kMaxString); in TestIp6AddressFromString()
183 memcpy(string, testVector.mString, length); in TestIp6AddressFromString()
189 VerifyOrQuit(prefix.FromString(string) == testVector.mError); in TestIp6AddressFromString()
191 if (testVector.mError == kErrorNone) in TestIp6AddressFromString()
193 VerifyOrQuit(memcmp(prefix.GetBytes(), testVector.mAddr, sizeof(Ip6::Address)) == 0); in TestIp6AddressFromString()
243 for (Ip4AddressTestVector &testVector : testVectors) in TestIp4AddressFromString()
245 checkAddressFromString(&testVector); in TestIp4AddressFromString()
[all …]