Searched refs:message2 (Results 1 – 3 of 3) sorted by relevance
/openthread-2.7.6/tests/unit/ |
D | test_message.cpp | 51 Message * message2; in TestMessage() local 136 VerifyOrQuit((message2 = messagePool->New(Message::kTypeIp6, 0)) != nullptr); in TestMessage() 137 SuccessOrQuit(message2->SetLength(kMaxSize)); in TestMessage() 147 message2->WriteBytes(0, zeroBuffer, kMaxSize); in TestMessage() 149 bytesCopied = message->CopyTo(srcOffset, dstOffset, length, *message2); in TestMessage() 160 SuccessOrQuit(message2->Read(0, readBuffer, kMaxSize)); in TestMessage() 168 VerifyOrQuit(message->CompareBytes(srcOffset, *message2, dstOffset, bytesCopied)); in TestMessage() 169 VerifyOrQuit(message2->CompareBytes(dstOffset, *message, srcOffset, bytesCopied)); in TestMessage() 203 IgnoreError(message2->SetLength(0)); in TestMessage() 204 SuccessOrQuit(message2->AppendBytes(zeroBuffer, dstOffset)); in TestMessage() [all …]
|
D | test_dns.cpp | 406 Message * message2; in TestDnsCompressedName() local 689 VerifyOrQuit((message2 = messagePool->New(Message::kTypeIp6, 0)) != nullptr); in TestDnsCompressedName() 697 SuccessOrQuit(dnsName1.AppendTo(*message2)); in TestDnsCompressedName() 698 SuccessOrQuit(dnsName2.AppendTo(*message2)); in TestDnsCompressedName() 699 SuccessOrQuit(dnsName3.AppendTo(*message2)); in TestDnsCompressedName() 700 SuccessOrQuit(dnsName4.AppendTo(*message2)); in TestDnsCompressedName() 702 SuccessOrQuit(message2->Read(0, buffer, message2->GetLength())); in TestDnsCompressedName() 703 DumpBuffer("message2", buffer, message2->GetLength()); in TestDnsCompressedName() 708 SuccessOrQuit(Dns::Name::CompareName(*message2, offset, dnsName1)); in TestDnsCompressedName() 709 SuccessOrQuit(Dns::Name::CompareName(*message2, offset, dnsName2)); in TestDnsCompressedName() [all …]
|
D | test_spinel_buffer.cpp | 220 Message * message2; in WriteTestFrame2() local 228 message2 = sMessagePool->New(Message::kTypeIp6, 0); in WriteTestFrame2() 229 VerifyOrQuit(message2 != nullptr, "Null Message"); in WriteTestFrame2() 230 SuccessOrQuit(message2->SetLength(sizeof(sHelloText))); in WriteTestFrame2() 231 message2->Write(0, sHelloText); in WriteTestFrame2() 236 SuccessOrQuit(aNcpBuffer.InFrameFeedMessage(message2)); in WriteTestFrame2()
|