rtponvif: split unit tests in several files
authorBranko Subasic <branko@axis.com>
Tue, 13 Oct 2015 12:21:47 +0000 (14:21 +0200)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Fri, 6 Nov 2015 17:55:25 +0000 (12:55 -0500)
commitfd0ca0a9723931463c8be93517d13b5ef799f6f0
tree7460c2c5a1693d50f802d056402a349f203af0df
parentccff3be3ab2e5bffcefc12c80a5edb225801f1b9
rtponvif: split unit tests in several files

Split the unit tests for rtponviftimestamp and rtponvifparse
elements in separate files.
Setup and cleanup the element and pads in fixures. Make the tests work
with CK_FORK=no as well, by cleaning up the 'buffers' list when needed.
Make unit tests work when run in valgrind by unreffing all buffers,
and by not allocating any payload in RTP buffers. Since we're not
doing anything with the payload part, but we're memcmp-aring the
complete buffer memory, valgrind complained about non-initialized
memory being used.

https://bugzilla.gnome.org/show_bug.cgi?id=757688
tests/check/Makefile.am
tests/check/elements/rtponvifparse.c [new file with mode: 0644]
tests/check/elements/rtponviftimestamp.c [moved from tests/check/elements/rtponvif.c with 54% similarity]