class SpscBufferTests

Defined at line 16 of file ../../zircon/kernel/lib/spsc_buffer/tests/spsc_test.cc

The SpscBufferTests class is a friend of the SpscBuffer class, thus allowing tests to access

private members of that class.

Public Methods

bool TestSplitCombinedPointers ()

Test that splitting combined pointers into the constituent read and write pointers works.

Defined at line 19 of file ../../zircon/kernel/lib/spsc_buffer/tests/spsc_test.cc

bool TestCombinePointers ()

Test that combining read and write pointers into a single combined pointer works.

Defined at line 60 of file ../../zircon/kernel/lib/spsc_buffer/tests/spsc_test.cc

bool TestAvailableSpace ()

Test that the amount of available space in the ring buffer is correctly calculated.

Defined at line 99 of file ../../zircon/kernel/lib/spsc_buffer/tests/spsc_test.cc

bool TestAvailableData ()

Test that the amount of available data in the ring buffer is correctly calculated.

Defined at line 161 of file ../../zircon/kernel/lib/spsc_buffer/tests/spsc_test.cc

bool TestAdvanceReadPointer ()

Test that advancing the read pointer works as expected.

Defined at line 219 of file ../../zircon/kernel/lib/spsc_buffer/tests/spsc_test.cc

bool TestAdvanceWritePointer ()

Test that advancing the write pointer works as expected.

Defined at line 272 of file ../../zircon/kernel/lib/spsc_buffer/tests/spsc_test.cc

bool TestInit ()

Test that initialization of the SpscBuffer works correctly.

Defined at line 325 of file ../../zircon/kernel/lib/spsc_buffer/tests/spsc_test.cc

bool TestReadWriteSingleThreaded ()

Test that reads and writes from the same thread work correctly.

Defined at line 363 of file ../../zircon/kernel/lib/spsc_buffer/tests/spsc_test.cc

bool TestDrain ()

Test that draining the buffer works.

Defined at line 529 of file ../../zircon/kernel/lib/spsc_buffer/tests/spsc_test.cc