tests: add unit test for bitreader, bytereader and bytewriter with no inlining used

This commit is contained in:
Tim-Philipp Müller 2013-12-14 21:20:45 +00:00
parent fcfe7085b9
commit 430df345c4
5 changed files with 69 additions and 0 deletions

View file

@ -137,6 +137,9 @@ check_PROGRAMS = \
libs/bitreader \
libs/bytereader \
libs/bytewriter \
libs/bitreader-noinline \
libs/bytereader-noinline \
libs/bytewriter-noinline \
libs/collectpads \
libs/gstnetclientclock \
libs/gstnettimeprovider \

View file

@ -3,8 +3,11 @@ adapter
basesink
basesrc
bitreader
bitreader-noinline
bytereader
bytereader-noinline
bytewriter
bytewriter-noinline
gdp
collectpads
controller

View file

@ -0,0 +1,21 @@
/* GStreamer unit test for GstBitReader without using inlining
* Copyright (C) 2013 Tim-Philipp Müller <tim@centricular.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#define GST_BIT_READER_DISABLE_INLINES
#include "bitreader.c"

View file

@ -0,0 +1,21 @@
/* GStreamer unit test for GstByteReader without using inlining
* Copyright (C) 2013 Tim-Philipp Müller <tim@centricular.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#define GST_BYTE_READER_DISABLE_INLINES
#include "bytereader.c"

View file

@ -0,0 +1,21 @@
/* GStreamer unit test for GstByteWriter without using inlining
* Copyright (C) 2013 Tim-Philipp Müller <tim@centricular.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#define GST_BYTE_WRITER_DISABLE_INLINES
#include "bytewriter.c"