Home
last modified time | relevance | path

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

/openthread-3.6.0/tests/unit/
Dtest_message.cpp56 uint8_t zeroBuffer[kMaxSize]; in TestMessage() local
60 memset(zeroBuffer, 0, sizeof(zeroBuffer)); in TestMessage()
122 …VerifyOrQuit(memcmp(&readBuffer[length], zeroBuffer, kMaxSize - length) == 0, "read after length"); in TestMessage()
155 …VerifyOrQuit(memcmp(&readBuffer[readLength], zeroBuffer, kMaxSize - readLength) == 0, "read after … in TestMessage()
176 message2->WriteBytes(0, zeroBuffer, kMaxSize); in TestMessage()
182 VerifyOrQuit(memcmp(&readBuffer[0], zeroBuffer, writeOffset) == 0); in TestMessage()
184 …VerifyOrQuit(memcmp(&readBuffer[writeOffset + length], zeroBuffer, kMaxSize - length - writeOffset… in TestMessage()
261 SuccessOrQuit(message2->AppendBytes(zeroBuffer, dstOffset)); in TestMessage()
349 uint8_t zeroBuffer[kMaxBufferSize]; in TestAppender() local
362 memset(zeroBuffer, 0, sizeof(zeroBuffer)); in TestAppender()
[all …]
Dtest_frame_builder.cpp50 uint8_t zeroBuffer[kMaxBufferSize]; in TestFrameBuilder() local
65 memset(zeroBuffer, 0, sizeof(zeroBuffer)); in TestFrameBuilder()
72 VerifyOrQuit(memcmp(buffer, zeroBuffer, sizeof(buffer)) == 0); in TestFrameBuilder()
80 VerifyOrQuit(memcmp(buffer, zeroBuffer, sizeof(buffer)) == 0); in TestFrameBuilder()
88 VerifyOrQuit(memcmp(buffer + sizeof(kData1), zeroBuffer, sizeof(buffer) - sizeof(kData1)) == 0); in TestFrameBuilder()
133 SuccessOrQuit(frameBuilder.AppendBytes(zeroBuffer, sizeof(kData2))); in TestFrameBuilder()
138 VerifyOrQuit(memcmp(buffer + sizeof(kData1), zeroBuffer, sizeof(kData2)) == 0); in TestFrameBuilder()