77 FrameCnt frameNr = 123;
90 sink2.
emit (frameNr-1, buff10);
91 sink2.
emit (frameNr , buff11);
92 sink1.
emit (frameNr-1, buff00);
115 CHECK (*stream0 == testData(0,0)); ++stream0;
119 CHECK (*stream1 == testData(1,0)); ++stream1;
120 CHECK (*stream1 == testData(1,1)); ++stream1;
Extension to allow placing objects right into the buffers, taking ownership.
A front-end to support the buffer management within the render nodes.
Handle for a buffer for processing data, abstracting away the actual implementation.
BU & accessAs()
convenience shortcut: access the buffer contents casted to a specific type.
Mock data frame for simulated rendering.
denotes an opened connection ready to receive media data for output.
BuffHandle lockBufferFor(FrameID)
void emit(FrameID, BuffHandle const &, TimeValue currentTime=Time::ANYTIME)
Helper for unit tests: Mock output sink.
bool output_was_emitted(uint channel, FrameID outputFrame)
OutputFramesLog::iterator OutFrames
OutFrames getChannel(uint channel)
static OutputSlot & build()
build a new Diagnostic Output Slot instance, discard the existing one.
bool frame_was_allocated(uint channel, FrameID nominalFrame)
bool output_was_closed(uint channel, FrameID outputFrame)
static DiagnosticOutputSlot & access(OutputSlot &to_investigate)
virtual OpenedSinks getOpenedSinks()=0
Interface: Generic output sink.
Allocation & allocate()
claim this slot for exclusive use
void verifyStandardCase()
An facility for writing unit-tests against the OutputSlot interface.
TestFrame & testData(uint seqNr, uint chanNr)
Helper to access a specific frame of test data at a fixed memory location.
Steam-Layer implementation namespace root.
Test runner and basic definitions for tests.
Simplistic test class runner.
#define LAUNCHER(_TEST_CLASS_, _GROUPS_)
Unit test helper to generate fake test data frames.