mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
tests: add unit test for bitreader, bytereader and bytewriter with no inlining used
This commit is contained in:
parent
fcfe7085b9
commit
430df345c4
5 changed files with 69 additions and 0 deletions
|
@ -137,6 +137,9 @@ check_PROGRAMS = \
|
||||||
libs/bitreader \
|
libs/bitreader \
|
||||||
libs/bytereader \
|
libs/bytereader \
|
||||||
libs/bytewriter \
|
libs/bytewriter \
|
||||||
|
libs/bitreader-noinline \
|
||||||
|
libs/bytereader-noinline \
|
||||||
|
libs/bytewriter-noinline \
|
||||||
libs/collectpads \
|
libs/collectpads \
|
||||||
libs/gstnetclientclock \
|
libs/gstnetclientclock \
|
||||||
libs/gstnettimeprovider \
|
libs/gstnettimeprovider \
|
||||||
|
|
3
tests/check/libs/.gitignore
vendored
3
tests/check/libs/.gitignore
vendored
|
@ -3,8 +3,11 @@ adapter
|
||||||
basesink
|
basesink
|
||||||
basesrc
|
basesrc
|
||||||
bitreader
|
bitreader
|
||||||
|
bitreader-noinline
|
||||||
bytereader
|
bytereader
|
||||||
|
bytereader-noinline
|
||||||
bytewriter
|
bytewriter
|
||||||
|
bytewriter-noinline
|
||||||
gdp
|
gdp
|
||||||
collectpads
|
collectpads
|
||||||
controller
|
controller
|
||||||
|
|
21
tests/check/libs/bitreader-noinline.c
Normal file
21
tests/check/libs/bitreader-noinline.c
Normal 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"
|
21
tests/check/libs/bytereader-noinline.c
Normal file
21
tests/check/libs/bytereader-noinline.c
Normal 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"
|
21
tests/check/libs/bytewriter-noinline.c
Normal file
21
tests/check/libs/bytewriter-noinline.c
Normal 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"
|
Loading…
Reference in a new issue