harness: add gst_harness_take_all_data() + _take_all_data_as_{bytes,buffer}()
authorTim-Philipp Müller <tim@centricular.com>
Tue, 5 Dec 2017 15:28:43 +0000 (15:28 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 5 Dec 2017 15:37:00 +0000 (15:37 +0000)
commitd8e7fc40b109a3bd17765250c86d0912a99152a3
tree74e4b57bf4a3350bc2e4ff7250dae62224e4be9a
parentbcc5e5bcd579b67af3963eb117d152a4a67ca0c4
harness: add gst_harness_take_all_data() + _take_all_data_as_{bytes,buffer}()

Convenience function to just grab all pending data
from the harness, e.g. if we just want to check if
it matches what we expect and we don't care about
the chunking or buffer metadata.

Based on patch by: Havard Graff <havard.graff@gmail.com>
docs/libs/gstreamer-libs-sections.txt
libs/gst/check/Makefile.am
libs/gst/check/gstharness.c
libs/gst/check/gstharness.h
tests/check/libs/gstharness.c