diff options
Diffstat (limited to 'tests/check')
-rw-r--r-- | tests/check/Makefile.am | 8 | ||||
-rw-r--r-- | tests/check/gst/.gitignore | 1 | ||||
-rw-r--r-- | tests/check/libs/gdp.c | 105 | ||||
-rw-r--r-- | tests/check/libs/gstlibscpp.cc | 2 | ||||
-rw-r--r-- | tests/check/libs/libsabi.c | 1 |
5 files changed, 1 insertions, 116 deletions
diff --git a/tests/check/Makefile.am b/tests/check/Makefile.am index 689632c1d..0bbe12a01 100644 --- a/tests/check/Makefile.am +++ b/tests/check/Makefile.am @@ -127,7 +127,6 @@ check_PROGRAMS = \ $(PARSE_CHECKS) \ $(REGISTRY_CHECKS) \ $(LIBSABI_CHECKS) \ - libs/gdp \ libs/adapter \ libs/bitreader \ libs/bytereader \ @@ -178,12 +177,6 @@ libs_gstlibscpp_SOURCES = libs/gstlibscpp.cc gst_gstutils_LDADD = $(LDADD) $(GSL_LIBS) $(GMP_LIBS) -libs_gdp_SOURCES = \ - libs/gdp.c -libs_gdp_LDADD = \ - $(top_builddir)/libs/gst/dataprotocol/libgstdataprotocol-@GST_MAJORMINOR@.la \ - $(LDADD) - elements_fdsrc_CFLAGS=$(GST_OBJ_CFLAGS) $(AM_CFLAGS) \ -DTESTFILE=\"$(top_srcdir)/configure.ac\" elements_filesrc_CFLAGS=$(GST_OBJ_CFLAGS) $(AM_CFLAGS) \ @@ -225,7 +218,6 @@ COVERAGE_DIRS = \ libs/gst/base \ libs/gst/controller \ libs/gst/check \ - libs/gst/dataprotocol \ libs/gst/net \ plugins/elements COVERAGE_FILES = $(foreach dir,$(COVERAGE_DIRS),$(wildcard $(top_builddir)/$(dir)/*.gcov)) diff --git a/tests/check/gst/.gitignore b/tests/check/gst/.gitignore index 5ee0bcf40..6a83ce121 100644 --- a/tests/check/gst/.gitignore +++ b/tests/check/gst/.gitignore @@ -9,6 +9,7 @@ gstbus gstcaps gstchildproxy gstclock +gstcontroller gstcpp gstdata gstdatetime diff --git a/tests/check/libs/gdp.c b/tests/check/libs/gdp.c deleted file mode 100644 index fff4ed43f..000000000 --- a/tests/check/libs/gdp.c +++ /dev/null @@ -1,105 +0,0 @@ -/* GStreamer - * - * unit test for data protocol - * - * Copyright (C) <2004> Thomas Vander Stichele <thomas at apestaart dot org> - * - * 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., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - */ - -#include "config.h" - -#include <gst/check/gstcheck.h> - -#ifndef GST_REMOVE_DEPRECATED -#undef GST_DISABLE_DEPRECATED -#endif - -#include <gst/dataprotocol/dataprotocol.h> -#include "libs/gst/dataprotocol/dp-private.h" /* private header */ - -/* test our method of reading and writing headers using TO/FROM_BE */ -GST_START_TEST (test_conversion) -{ - guint8 array[9]; - guint8 write_array[9]; - guint16 read_two, expect_two; - guint32 read_four, expect_four; - guint64 read_eight, expect_eight; - int i; - - for (i = 0; i < 9; ++i) { - array[i] = i * 0x10; - } - - /* read 8 16 bits */ - for (i = 0; i < 8; ++i) { - read_two = GST_READ_UINT16_BE (array + i); - expect_two = array[i] * (1 << 8) + array[i + 1]; - fail_unless (read_two == expect_two, - "GST_READ_UINT16_BE %d: read %d != %d", i, read_two, expect_two); - } - - /* write 8 16 bits */ - for (i = 0; i < 8; ++i) { - GST_WRITE_UINT16_BE (&write_array[i], read_two); - fail_unless (memcmp (array + 7, write_array + i, 2) == 0, - "GST_WRITE_UINT16_BE %d: memcmp failed", i); - } - - /* read 5 32 bits */ - for (i = 0; i < 5; ++i) { - read_four = GST_READ_UINT32_BE (array + i); - expect_four = array[i] * (1 << 24) + array[i + 1] * (1 << 16) - + array[i + 2] * (1 << 8) + array[i + 3]; - fail_unless (read_four == expect_four, - "GST_READ_UINT32_BE %d: read %d != %d", i, read_four, expect_four); - } - - /* read 2 64 bits */ - for (i = 0; i < 2; ++i) { - read_eight = GST_READ_UINT64_BE (array + i); - expect_eight = array[i] * (1LL << 56) + array[i + 1] * (1LL << 48) - + array[i + 2] * (1LL << 40) + array[i + 3] * (1LL << 32) - + array[i + 4] * (1 << 24) + array[i + 5] * (1 << 16) - + array[i + 6] * (1 << 8) + array[i + 7]; - fail_unless (read_eight == expect_eight, - "GST_READ_UINT64_BE %d: read %" G_GUINT64_FORMAT - " != %" G_GUINT64_FORMAT, i, read_eight, expect_eight); - } - - /* write 1 64 bit */ - GST_WRITE_UINT64_BE (&write_array[0], read_eight); - fail_unless (memcmp (array + 1, write_array, 8) == 0, - "GST_WRITE_UINT64_BE: memcmp failed"); -} - -GST_END_TEST; - -static Suite * -gst_dp_suite (void) -{ - Suite *s = suite_create ("data protocol"); - TCase *tc_chain = tcase_create ("general"); - - suite_add_tcase (s, tc_chain); - tcase_add_checked_fixture (tc_chain, gst_dp_init, NULL); - tcase_add_test (tc_chain, test_conversion); - - return s; -} - -GST_CHECK_MAIN (gst_dp); diff --git a/tests/check/libs/gstlibscpp.cc b/tests/check/libs/gstlibscpp.cc index 6ea6de5fe..0009ec3f4 100644 --- a/tests/check/libs/gstlibscpp.cc +++ b/tests/check/libs/gstlibscpp.cc @@ -39,8 +39,6 @@ #include <gst/controller/gstlfocontrolsource.h> #include <gst/controller/gsttriggercontrolsource.h> -#include <gst/dataprotocol/dataprotocol.h> - #include <gst/net/gstnetclientclock.h> #include <gst/net/gstnet.h> #include <gst/net/gstnettimepacket.h> diff --git a/tests/check/libs/libsabi.c b/tests/check/libs/libsabi.c index f302bc6d9..117df17ed 100644 --- a/tests/check/libs/libsabi.c +++ b/tests/check/libs/libsabi.c @@ -36,7 +36,6 @@ #include <gst/controller/gstcontrolsource.h> #include <gst/controller/gstinterpolationcontrolsource.h> #include <gst/controller/gstlfocontrolsource.h> -#include <gst/dataprotocol/dataprotocol.h> #include <gst/net/gstnet.h> #include <gst/net/gstnetclientclock.h> #include <gst/net/gstnettimepacket.h> |