Searched refs:sOpenThreadText (Results 1 – 2 of 2) sorted by relevance
/openthread-3.7.0/tests/unit/ |
D | test_hdlc.cpp | 56 static const uint8_t sOpenThreadText[] = "OpenThread Rocks"; variable 86 SuccessOrQuit(WriteToBuffer(sOpenThreadText, frameBuffer)); in TestHdlcFrameBuffer() 88 VerifyOrQuit(frameBuffer.GetLength() == sizeof(sOpenThreadText) - 1); in TestHdlcFrameBuffer() 89 VerifyOrQuit(memcmp(frameBuffer.GetFrame(), sOpenThreadText, frameBuffer.GetLength()) == 0); in TestHdlcFrameBuffer() 95 VerifyOrQuit(frameBuffer.GetLength() == sizeof(sOpenThreadText) + sizeof(sHelloText) - 2); in TestHdlcFrameBuffer() 98 VerifyOrQuit(frameBuffer.GetLength() == sizeof(sOpenThreadText) - 1); in TestHdlcFrameBuffer() 99 VerifyOrQuit(memcmp(frameBuffer.GetFrame(), sOpenThreadText, frameBuffer.GetLength()) == 0); in TestHdlcFrameBuffer() 169 SuccessOrQuit(WriteToBuffer(sOpenThreadText, frameBuffer)); in TestSpinelMultiFrameBuffer() 170 VerifyOrQuit(frameBuffer.GetLength() == sizeof(sOpenThreadText) - 1); in TestSpinelMultiFrameBuffer() 171 VerifyOrQuit(memcmp(frameBuffer.GetFrame(), sOpenThreadText, frameBuffer.GetLength()) == 0); in TestSpinelMultiFrameBuffer() [all …]
|
D | test_spinel_buffer.cpp | 54 static const uint8_t sOpenThreadText[] = "OpenThread Rocks"; variable 76 kTestFrame2Size = sizeof(sMysteryText) + sizeof(sHelloText) + sizeof(sOpenThreadText), 78 kTestFrame4Size = sizeof(sOpenThreadText), 235 SuccessOrQuit(aNcpBuffer.InFrameFeedData(sOpenThreadText, sizeof(sOpenThreadText))); in WriteTestFrame2() 251 ReadAndVerifyContent(aNcpBuffer, sOpenThreadText, sizeof(sOpenThreadText)); in VerifyAndRemoveFrame2() 306 SuccessOrQuit(aNcpBuffer.InFrameFeedData(sOpenThreadText, sizeof(sOpenThreadText))); in WriteTestFrame4() 317 VerifyOrQuit(aNcpBuffer.OutFrameGetLength() == sizeof(sOpenThreadText)); in VerifyAndRemoveFrame4() 319 VerifyOrQuit(aNcpBuffer.OutFrameGetLength() == sizeof(sOpenThreadText)); in VerifyAndRemoveFrame4() 320 ReadAndVerifyContent(aNcpBuffer, sOpenThreadText, sizeof(sOpenThreadText)); in VerifyAndRemoveFrame4() 324 VerifyOrQuit(aNcpBuffer.OutFrameGetLength() == sizeof(sOpenThreadText)); in VerifyAndRemoveFrame4() [all …]
|