Home
last modified time | relevance | path

Searched refs:readBuffer (Results 1 – 3 of 3) sorted by relevance

/openthread-3.7.0/tests/unit/
Dtest_message.cpp55 uint8_t readBuffer[kMaxSize]; in TestMessage() local
78 SuccessOrQuit(message->Read(0, readBuffer, kMaxSize)); in TestMessage()
79 VerifyOrQuit(memcmp(writeBuffer, readBuffer, kMaxSize) == 0); in TestMessage()
80 VerifyOrQuit(message->CompareBytes(0, readBuffer, kMaxSize)); in TestMessage()
81 VerifyOrQuit(message->Compare(0, readBuffer)); in TestMessage()
88 SuccessOrQuit(messageCopy->Read(0, readBuffer, kMaxSize)); in TestMessage()
89 VerifyOrQuit(memcmp(writeBuffer, readBuffer, kMaxSize) == 0); in TestMessage()
90 VerifyOrQuit(messageCopy->CompareBytes(0, readBuffer, kMaxSize)); in TestMessage()
91 VerifyOrQuit(messageCopy->Compare(0, readBuffer)); in TestMessage()
99 VerifyOrQuit(messageCopy->Compare(0, readBuffer)); in TestMessage()
[all …]
Dtest_flash.cpp45 uint8_t readBuffer[256]; in TestFlash() local
51 for (uint32_t i = 0; i < sizeof(readBuffer); i++) in TestFlash()
53 readBuffer[i] = i & 0xff; in TestFlash()
76 SuccessOrQuit(flash.Get(key, 0, readBuffer, &length)); in TestFlash()
78 … VerifyOrQuit(memcmp(readBuffer, writeBuffer, length) == 0, "Get() did not return expected value"); in TestFlash()
105 SuccessOrQuit(flash.Get(0, index, readBuffer, &length)); in TestFlash()
107 … VerifyOrQuit(memcmp(readBuffer, writeBuffer, length) == 0, "Get() did not return expected value"); in TestFlash()
138 SuccessOrQuit(flash.Get(0, index, readBuffer, &length)); in TestFlash()
140 … VerifyOrQuit(memcmp(readBuffer, writeBuffer, length) == 0, "Get() did not return expected value"); in TestFlash()
182 SuccessOrQuit(flash.Get(key, 0, readBuffer, &length)); in TestFlash()
[all …]
Dtest_spinel_buffer.cpp339 uint8_t readBuffer[16]; in TestBuffer() local
607 while ((readLen = ncpBuffer.OutFrameRead(sizeof(readBuffer), readBuffer)) != 0) in TestBuffer()
609 DumpBuffer("Read() returned", readBuffer, readLen); in TestBuffer()
611 VerifyOrQuit(memcmp(readBuffer, sMottoText + readOffset, readLen) == 0, in TestBuffer()