Searched refs:writeBuffer (Results 1 – 2 of 2) sorted by relevance
/openthread-3.6.0/tests/unit/ |
D | test_message.cpp | 54 uint8_t writeBuffer[kMaxSize]; in TestMessage() local 67 Random::NonCrypto::FillBuffer(writeBuffer, kMaxSize); in TestMessage() 77 message->WriteBytes(0, writeBuffer, kMaxSize); in TestMessage() 79 VerifyOrQuit(memcmp(writeBuffer, readBuffer, kMaxSize) == 0); in TestMessage() 89 VerifyOrQuit(memcmp(writeBuffer, readBuffer, kMaxSize) == 0); in TestMessage() 110 writeBuffer[offset + i]++; in TestMessage() 113 message->WriteBytes(offset, &writeBuffer[offset], length); in TestMessage() 116 VerifyOrQuit(memcmp(writeBuffer, readBuffer, kMaxSize) == 0); in TestMessage() 117 VerifyOrQuit(message->Compare(0, writeBuffer)); in TestMessage() 121 VerifyOrQuit(memcmp(readBuffer, &writeBuffer[offset], length) == 0); in TestMessage() [all …]
|
D | test_flash.cpp | 46 uint8_t writeBuffer[256]; in TestFlash() local 69 SuccessOrQuit(flash.Add(key, writeBuffer, length)); in TestFlash() 78 … VerifyOrQuit(memcmp(readBuffer, writeBuffer, length) == 0, "Get() did not return expected value"); in TestFlash() 98 SuccessOrQuit(flash.Add(0, writeBuffer, length)); in TestFlash() 107 … VerifyOrQuit(memcmp(readBuffer, writeBuffer, length) == 0, "Get() did not return expected value"); in TestFlash() 126 SuccessOrQuit(flash.Set(0, writeBuffer, length)); in TestFlash() 130 SuccessOrQuit(flash.Add(0, writeBuffer, length)); in TestFlash() 140 … VerifyOrQuit(memcmp(readBuffer, writeBuffer, length) == 0, "Get() did not return expected value"); in TestFlash() 157 SuccessOrQuit(flash.Add(key, writeBuffer, length)); in TestFlash() 175 SuccessOrQuit(flash.Set(key, writeBuffer, length)); in TestFlash() [all …]
|