Searched refs:writeBuffer (Results 1 – 2 of 2) sorted by relevance
/openthread-3.5.0/tests/unit/ |
D | test_message.cpp | 53 uint8_t writeBuffer[kMaxSize]; in TestMessage() local 66 Random::NonCrypto::FillBuffer(writeBuffer, kMaxSize); in TestMessage() 70 message->WriteBytes(0, writeBuffer, kMaxSize); in TestMessage() 72 VerifyOrQuit(memcmp(writeBuffer, readBuffer, kMaxSize) == 0); in TestMessage() 83 writeBuffer[offset + i]++; in TestMessage() 86 message->WriteBytes(offset, &writeBuffer[offset], length); in TestMessage() 89 VerifyOrQuit(memcmp(writeBuffer, readBuffer, kMaxSize) == 0); in TestMessage() 90 VerifyOrQuit(message->Compare(0, writeBuffer)); in TestMessage() 94 VerifyOrQuit(memcmp(readBuffer, &writeBuffer[offset], length) == 0); in TestMessage() 97 VerifyOrQuit(message->CompareBytes(offset, &writeBuffer[offset], length)); 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 …]
|