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

Description

Test:
verify and demonstrate the usage cycle of data buffers for the engine based on the BufferProvider interface. This is kind of a "dry run" for documentation purposes, because the BufferProvider implementation used here is just a diagnostics facility, allowing to investigate the state of individual buffers even after "releasing" them.

This test should help understanding the sequence of buffer management operations performed at various stages while passing an calculation job through the render engine.

Definition at line 70 of file buffer-provider-protocol-test.cpp.

Private Member Functions

virtual void run (Arg)
 
void verifySimpleUsage ()
 
void verifyStandardCase ()
 
void verifyObjectAttachment ()
 
void verifyObjectAttachmentFailure ()
 

Member Function Documentation

◆ run()

virtual void run ( Arg  )
inlineprivatevirtual

Definition at line 73 of file buffer-provider-protocol-test.cpp.

References BufferProviderProtocol_test::verifyObjectAttachment(), BufferProviderProtocol_test::verifyObjectAttachmentFailure(), BufferProviderProtocol_test::verifySimpleUsage(), and BufferProviderProtocol_test::verifyStandardCase().

+ Here is the call graph for this function:

◆ verifySimpleUsage()

void verifySimpleUsage ( )
inlineprivate

Definition at line 83 of file buffer-provider-protocol-test.cpp.

References DiagnosticBufferProvider::access(), BuffHandle::accessAs(), DiagnosticBufferProvider::accessMemory(), DiagnosticBufferProvider::buffer_was_closed(), DiagnosticBufferProvider::buffer_was_used(), DiagnosticBufferProvider::build(), BuffHandle::emit(), BuffHandle::isValid(), BufferProvider::lockBufferFor(), BuffHandle::release(), BuffHandle::size(), steam::engine::test::testData(), and VERIFY_ERROR.

Referenced by BufferProviderProtocol_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 112 of file buffer-provider-protocol-test.cpp.

References DiagnosticBufferProvider::access(), DiagnosticBufferProvider::all_buffers_released(), BufferProvider::announce(), BuffTable::Builder::announce(), BuffTable::buffers(), BuffTable::Builder::build(), DiagnosticBufferProvider::build(), BufferProvider::getDescriptor(), BufferProvider::getDescriptorFor(), BuffTable::lockBuffers(), BuffTable::prepare(), BuffTable::releaseBuffers(), and BuffDescr::verifyValidity().

Referenced by BufferProviderProtocol_test::run().

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

◆ verifyObjectAttachment()

void verifyObjectAttachment ( )
inlineprivate

Definition at line 149 of file buffer-provider-protocol-test.cpp.

References DiagnosticBufferProvider::build(), BuffHandle::create(), BufferProvider::getDescriptor(), BufferProvider::getDescriptorFor(), TestFrame::isAlive(), TestFrame::isDead(), TestFrame::isSane(), BufferProvider::lockBuffer(), BuffHandle::release(), BuffHandle::size(), and VERIFY_ERROR.

Referenced by BufferProviderProtocol_test::run().

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

◆ verifyObjectAttachmentFailure()

void verifyObjectAttachmentFailure ( )
inlineprivate

Definition at line 186 of file buffer-provider-protocol-test.cpp.

References BuffHandle::accessAs(), Dummy::activateCtorFailure(), DiagnosticBufferProvider::build(), Dummy::checksum(), BuffHandle::create(), BufferProvider::getDescriptorFor(), BuffHandle::isValid(), BufferProvider::lockBuffer(), BuffHandle::release(), and VERIFY_ERROR.

Referenced by BufferProviderProtocol_test::run().

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

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