Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
TrackingHeapBlockProvider_test Class Reference

Description

Test:
verify a test support facility, used to write mock components to test the lumiera engine. The TrackingHeapBlockProvider is a braindead implementation of the BufferProvider interface: it just claims new heap blocks and never de-allocates them, allowing other test and mock objects to verify allocated buffers after the fact.

Definition at line 68 of file tracking-heap-block-provider-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void simpleExample ()
 
void verifyStandardCase ()
 
void verifyTestProtocol ()
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 71 of file tracking-heap-block-provider-test.cpp.

References TrackingHeapBlockProvider_test::simpleExample(), TrackingHeapBlockProvider_test::verifyStandardCase(), and TrackingHeapBlockProvider_test::verifyTestProtocol().

+ Here is the call graph for this function:

◆ simpleExample()

void simpleExample ( )
inlineprivate

Definition at line 82 of file tracking-heap-block-provider-test.cpp.

References TrackingHeapBlockProvider::access_emitted(), BuffHandle::accessAs(), Block::accessMemory(), BufferProvider::emitBuffer(), TestFrame::isSane(), BufferProvider::lockBufferFor(), BufferProvider::releaseBuffer(), and steam::engine::test::testData().

Referenced by TrackingHeapBlockProvider_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ verifyStandardCase()

void verifyStandardCase ( )
inlineprivate

Definition at line 102 of file tracking-heap-block-provider-test.cpp.

References TrackingHeapBlockProvider::access_emitted(), BuffHandle::accessAs(), BufferProvider::announce(), BufferProvider::emitBuffer(), BufferProvider::getDescriptorFor(), BufferProvider::lockBuffer(), and BufferProvider::releaseBuffer().

Referenced by TrackingHeapBlockProvider_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ verifyTestProtocol()

void verifyTestProtocol ( )
inlineprivate

Definition at line 127 of file tracking-heap-block-provider-test.cpp.

References TrackingHeapBlockProvider::access_emitted(), BuffHandle::accessAs(), TrackingHeapBlockProvider::accessAs(), BufferProvider::emitBuffer(), TrackingHeapBlockProvider::emittedCnt(), BufferProvider::getDescriptorFor(), BufferProvider::lockBuffer(), BuffHandle::release(), Block::was_closed(), and Block::was_used().

Referenced by TrackingHeapBlockProvider_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:
+ Inheritance diagram for TrackingHeapBlockProvider_test:
+ Collaboration diagram for TrackingHeapBlockProvider_test:

The documentation for this class was generated from the following file: