Home
last modified time | relevance | path

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

/openthread-3.7.0/tests/unit/
Dtest_spinel_buffer.cpp336 Spinel::Buffer ncpBuffer(buffer, kTestBufferSize); in TestBuffer() local
356 ncpBuffer.SetFrameAddedCallback(FrameAddedCallback, &sContext); in TestBuffer()
357 ncpBuffer.SetFrameRemovedCallback(FrameRemovedCallback, &sContext); in TestBuffer()
362 VerifyOrQuit(ncpBuffer.IsEmpty(), "Not empty after init."); in TestBuffer()
363 …VerifyOrQuit(ncpBuffer.InFrameGetLastTag() == Spinel::Buffer::kInvalidTag, "Incorrect tag after in… in TestBuffer()
364 …VerifyOrQuit(ncpBuffer.OutFrameGetTag() == Spinel::Buffer::kInvalidTag, "Incorrect OutFrameTag aft… in TestBuffer()
369 WriteTestFrame1(ncpBuffer, Spinel::Buffer::kPriorityLow); in TestBuffer()
371 printf("\nFrameLen is %u", ncpBuffer.OutFrameGetLength()); in TestBuffer()
372 VerifyAndRemoveFrame1(ncpBuffer); in TestBuffer()
374 WriteTestFrame1(ncpBuffer, Spinel::Buffer::kPriorityHigh); in TestBuffer()
[all …]
Dtest_spinel_encoder.cpp59 Spinel::Buffer ncpBuffer(buffer, kTestBufferSize); in TestEncoder() local
60 Spinel::Encoder encoder(ncpBuffer); in TestEncoder()
144 SuccessOrQuit(ReadFrame(ncpBuffer, frame, frameLen)); in TestEncoder()
199 SuccessOrQuit(ReadFrame(ncpBuffer, frame, frameLen)); in TestEncoder()
258 SuccessOrQuit(ReadFrame(ncpBuffer, frame, frameLen)); in TestEncoder()
296 SuccessOrQuit(ReadFrame(ncpBuffer, frame, frameLen)); in TestEncoder()
340 SuccessOrQuit(ReadFrame(ncpBuffer, frame, frameLen)); in TestEncoder()