gstreamer-check-1.0
Description:
GStreamer Check Unit Testing
Content:
Namespaces:
- Gst
- Check
Classes:
- HarnessThread - Opaque handle representing a
GstHarness stress testing thread.
- LogFilter - Opaque structure containing data
about a log filter function.
- StreamConsistency - Opaque consistency
checker handle.
- TestClock - GstTestClock is an implementation of
Clock which has different behaviour compared to SystemClock.
Structs:
- ABIStruct
- Harness - Harness is
meant to make writing unit test for GStreamer much easier.
Delegates:
Methods:
- public void abi_list (ABIStruct list, bool have_abi_sizes)
Verifies that reference values and current values are equals in
list
.
- public void buffer_data (Buffer buffer, void* data, size_t size)
Compare the buffer contents with data
and size
.
- public Buffer buffer_straw_get_buffer (Element bin, Pad pad)
Get one buffer from pad
.
- public void buffer_straw_start_pipeline (Element bin, Pad pad)
Sets up a pipeline for buffer sucking.
- public void buffer_straw_stop_pipeline (Element bin, Pad pad)
- public void caps_equal (Caps caps1, Caps caps2)
Compare two caps with gst_caps_is_equal and fail unless they are
equal.
- public FlowReturn chain_func (Pad pad, Object parent, Buffer buffer)
A fake chain function that appends the buffer to the internal list
of buffers.
- public void clear_log_filter ()
Clear all filters added by gst_check_add_log_filter
.
- public void drop_buffers ()
Unref and remove all buffers that are in the global buffers
GList, emptying the list.
- public void element_push_buffer (string element_name, Buffer buffer_in, Caps caps_in, Buffer buffer_out, Caps caps_out)
Create an element using the factory providing the element_name
and push the buffer_in
to this element.
- public void element_push_buffer_list (string element_name, owned List<Buffer> buffer_in, Caps caps_in, owned List<Buffer> buffer_out, Caps caps_out, FlowReturn last_flow_return)
Create an element using the factory providing the element_name
and push the buffers in buffer_in
to this element.
- public uint harness_stress_thread_stop (HarnessThread t)
- public void init (int argc, string argv)
- public void message_error (Message message, MessageType type, Quark domain, int code)
- public void object_destroyed_on_unref (void* object_to_unref)
Unrefs object_to_unref
and checks that is has properly
been destroyed.
- public void remove_log_filter (LogFilter filter)
Remove a filter that has been added by
gst_check_add_log_filter
.
- public Element setup_element (string factory)
setup an element for a filter test with mysrcpad and mysinkpad
- public void setup_events (Pad srcpad, Element element, Caps? caps, Format format)
Push stream-start, caps and segment event, which consist of the
minimum required events to allow streaming.
- public void setup_events_with_stream_id (Pad srcpad, Element element, Caps? caps, Format format, string stream_id)
Push stream-start, caps and segment event, which consist of the
minimum required events to allow streaming.
- public Pad setup_sink_pad (Element element, StaticPadTemplate tmpl)
- public Pad setup_sink_pad_by_name (Element element, StaticPadTemplate tmpl, string name)
Creates a new sink pad (based on the given tmpl
) and
links it to the given element
src pad (the pad that matches the given name
).
- public Pad setup_sink_pad_by_name_from_template (Element element, PadTemplate tmpl, string name)
- public Pad setup_sink_pad_from_template (Element element, PadTemplate tmpl)
- public Pad setup_src_pad (Element element, StaticPadTemplate tmpl)
- public Pad setup_src_pad_by_name (Element element, StaticPadTemplate tmpl, string name)
Creates a new src pad (based on the given tmpl
) and
links it to the given element
sink pad (the pad that matches the given name
).
- public Pad setup_src_pad_by_name_from_template (Element element, PadTemplate tmpl, string name)
- public Pad setup_src_pad_from_template (Element element, PadTemplate tmpl)
- public void teardown_element (Element element)
- public void teardown_pad_by_name (Element element, string name)
- public void teardown_sink_pad (Element element)
- public void teardown_src_pad (Element element)