Home
last modified time | relevance | path

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

/openthread-2.7.6/tests/unit/
Dtest_hdlc.cpp58 static const uint8_t sHexText[] = "0123456789abcdef"; variable
187 SuccessOrQuit(WriteToBuffer(sHexText, frameBuffer)); in TestHdlcMultiFrameBuffer()
188 VerifyOrQuit(frameBuffer.GetLength() == sizeof(sHexText) - 1); in TestHdlcMultiFrameBuffer()
189 VerifyOrQuit(memcmp(frameBuffer.GetFrame(), sHexText, frameBuffer.GetLength()) == 0); in TestHdlcMultiFrameBuffer()
214 VerifyOrQuit(length == sizeof(sHexText) - 1, "GetNextSavedFrame() length is incorrect"); in TestHdlcMultiFrameBuffer()
215 …VerifyOrQuit(memcmp(frame, sHexText, length) == 0, "GetNextSavedFrame() frame content is incorrect… in TestHdlcMultiFrameBuffer()
247 VerifyOrQuit(length == sizeof(sHexText) - 1, "GetNextSavedFrame() length is incorrect"); in TestHdlcMultiFrameBuffer()
248 …VerifyOrQuit(memcmp(frame, sHexText, length) == 0, "GetNextSavedFrame() frame content is incorrect… in TestHdlcMultiFrameBuffer()
294 SuccessOrQuit(WriteToBuffer(sHexText, frameBuffer)); in TestHdlcMultiFrameBuffer()
306 VerifyOrQuit(frameBuffer.GetLength() == sizeof(sHexText) - 1, "after ClearSavedFrames()"); in TestHdlcMultiFrameBuffer()
[all …]
Dtest_spinel_buffer.cpp58 static const uint8_t sHexText[] = "0123456789abcdef"; variable
783 index = static_cast<uint16_t>(j % sizeof(sHexText)); in TestBuffer()
785 SuccessOrQuit(ncpBuffer.InFrameFeedData(sHexText, index)); in TestBuffer()
787 SuccessOrQuit(ncpBuffer.InFrameFeedData(sMysteryText, sizeof(sHexText) - index)); in TestBuffer()
788 VerifyOrQuit(ncpBuffer.InFrameGetDistance(pos1) == sizeof(sHexText) - index); in TestBuffer()
795 SuccessOrQuit(ncpBuffer.InFrameOverwrite(pos1, sHexText + index, sizeof(sHexText) - index), in TestBuffer()
798 sizeof(sHexText) - index + (addExtra ? sizeof(sHelloText) : 0), in TestBuffer()
802 VerifyOrQuit(ncpBuffer.InFrameOverwrite(pos1, sHexText, 0) != OT_ERROR_NONE); in TestBuffer()
804 ReadAndVerifyContent(ncpBuffer, sHexText, sizeof(sHexText)); in TestBuffer()
829 index = static_cast<uint16_t>(j % sizeof(sHexText)); in TestBuffer()
[all …]