Home
last modified time | relevance | path

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

/openthread-2.7.6/tests/unit/
Dtest_hdlc.cpp57 static const uint8_t sMottoText[] = "Think good thoughts, say good words, do good deeds!"; variable
105 SuccessOrQuit(WriteToBuffer(sMottoText, frameBuffer)); in TestHdlcFrameBuffer()
107 VerifyOrQuit(frameBuffer.GetLength() == sizeof(sMottoText) - 1); in TestHdlcFrameBuffer()
108 VerifyOrQuit(memcmp(frameBuffer.GetFrame(), sMottoText, frameBuffer.GetLength()) == 0); in TestHdlcFrameBuffer()
147 SuccessOrQuit(WriteToBuffer(sMottoText, frameBuffer)); in TestHdlcMultiFrameBuffer()
149 VerifyOrQuit(frameBuffer.GetLength() == sizeof(sMottoText) - 1); in TestHdlcMultiFrameBuffer()
150 VerifyOrQuit(memcmp(frameBuffer.GetFrame(), sMottoText, frameBuffer.GetLength()) == 0); in TestHdlcMultiFrameBuffer()
178 SuccessOrQuit(WriteToBuffer(sMottoText, frameBuffer)); in TestHdlcMultiFrameBuffer()
179 VerifyOrQuit(frameBuffer.GetLength() == sizeof(sMottoText) - 1); in TestHdlcMultiFrameBuffer()
180 VerifyOrQuit(memcmp(frameBuffer.GetFrame(), sMottoText, frameBuffer.GetLength()) == 0); in TestHdlcMultiFrameBuffer()
[all …]
Dtest_spinel_buffer.cpp56 static const uint8_t sMottoText[] = "Think good thoughts, say good words, do good deeds!"; variable
75 …kTestFrame1Size = sizeof(sMottoText) + sizeof(sMysteryText) + sizeof(sMottoText) + sizeof(sHelloTe…
181 SuccessOrQuit(message->SetLength(sizeof(sMottoText))); in WriteTestFrame1()
182 message->Write(0, sMottoText); in WriteTestFrame1()
186 SuccessOrQuit(aNcpBuffer.InFrameFeedData(sMottoText, sizeof(sMottoText))); in WriteTestFrame1()
204 ReadAndVerifyContent(aNcpBuffer, sMottoText, sizeof(sMottoText)); in VerifyAndRemoveFrame1()
206 ReadAndVerifyContent(aNcpBuffer, sMottoText, sizeof(sMottoText)); in VerifyAndRemoveFrame1()
601 SuccessOrQuit(ncpBuffer.InFrameFeedData(sMottoText, sizeof(sMottoText))); in TestBuffer()
611 VerifyOrQuit(memcmp(readBuffer, sMottoText + readOffset, readLen) == 0, in TestBuffer()
617 VerifyOrQuit(readOffset == sizeof(sMottoText), "Read len does not match expected length."); in TestBuffer()
[all …]