aboutsummaryrefslogtreecommitdiff
path: root/tests/check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/check')
-rw-r--r--tests/check/Makefile.in2
-rw-r--r--tests/check/gst/struct_arm.h5
-rw-r--r--tests/check/gst/struct_hppa.h5
-rw-r--r--tests/check/gst/struct_i386.h5
-rw-r--r--tests/check/gst/struct_ppc32.h5
-rw-r--r--tests/check/gst/struct_ppc64.h5
-rw-r--r--tests/check/gst/struct_sparc.h5
-rw-r--r--tests/check/gst/struct_x86_64.h5
-rw-r--r--tests/check/libs/adapter.c65
9 files changed, 66 insertions, 36 deletions
diff --git a/tests/check/Makefile.in b/tests/check/Makefile.in
index 34b2ec4..577f160 100644
--- a/tests/check/Makefile.in
+++ b/tests/check/Makefile.in
@@ -1171,6 +1171,7 @@ GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
GTKDOC_MKPDF = @GTKDOC_MKPDF@
GTKDOC_REBASE = @GTKDOC_REBASE@
+HAVE_DOCBOOK2HTML = @HAVE_DOCBOOK2HTML@
HAVE_DOCBOOK2PS = @HAVE_DOCBOOK2PS@
HAVE_DVIPS = @HAVE_DVIPS@
HAVE_EPSTOPDF = @HAVE_EPSTOPDF@
@@ -1181,7 +1182,6 @@ HAVE_PNGTOPNM = @HAVE_PNGTOPNM@
HAVE_PNMTOPS = @HAVE_PNMTOPS@
HAVE_PS2PDF = @HAVE_PS2PDF@
HAVE_XMLLINT = @HAVE_XMLLINT@
-HAVE_XSLTPROC = @HAVE_XSLTPROC@
HOST_CPU = @HOST_CPU@
HTML_DIR = @HTML_DIR@
INSTALL = @INSTALL@
diff --git a/tests/check/gst/struct_arm.h b/tests/check/gst/struct_arm.h
index db6ed90..7660266 100644
--- a/tests/check/gst/struct_arm.h
+++ b/tests/check/gst/struct_arm.h
@@ -12,7 +12,6 @@ GstCheckABIStruct list[] = {
{"GstBusClass", sizeof (GstBusClass), 116},
{"GstBus", sizeof (GstBus), 88},
{"GstCaps", sizeof (GstCaps), 36},
- {"GstChildProxyInterface", sizeof (GstChildProxyInterface), 44},
{"GstClockClass", sizeof (GstClockClass), 132},
{"GstClockEntry", sizeof (GstClockEntry), 72},
{"GstClock", sizeof (GstClock), 88},
@@ -46,7 +45,6 @@ GstCheckABIStruct list[] = {
{"GstPipelineClass", sizeof (GstPipelineClass), 308},
{"GstPipeline", sizeof (GstPipeline), 296},
{"GstPluginDesc", sizeof (GstPluginDesc), 60},
- {"GstPresetInterface", sizeof (GstPresetInterface), 56},
{"GstProxyPadClass", sizeof (GstProxyPadClass), 120},
{"GstProxyPad", sizeof (GstProxyPad), 312},
{"GstQuery", sizeof (GstQuery), 40},
@@ -59,15 +57,12 @@ GstCheckABIStruct list[] = {
{"GstSystemClockClass", sizeof (GstSystemClockClass), 148},
{"GstSystemClock", sizeof (GstSystemClock), 112},
{"GstTagList", sizeof (GstTagList), 36},
- {"GstTagSetterInterface", sizeof (GstTagSetterInterface), 8},
{"GstTaskClass", sizeof (GstTaskClass), 112},
{"GstTask", sizeof (GstTask), 128},
{"GstTaskPoolClass", sizeof (GstTaskPoolClass), 124},
{"GstTaskPool", sizeof (GstTaskPool), 88},
{"GstTimedValue", sizeof (GstTimedValue), 16},
- {"GstTocSetterInterface", sizeof (GstTocSetterInterface), 8},
{"GstTypeFind", sizeof (GstTypeFind), 32},
- {"GstURIHandlerInterface", sizeof (GstURIHandlerInterface), 24},
{"GstValueTable", sizeof (GstValueTable), 32},
{NULL, 0, 0}
};
diff --git a/tests/check/gst/struct_hppa.h b/tests/check/gst/struct_hppa.h
index b7a2952..5794580 100644
--- a/tests/check/gst/struct_hppa.h
+++ b/tests/check/gst/struct_hppa.h
@@ -11,7 +11,6 @@ static GstCheckABIStruct list[] = {
{"GstBusClass", sizeof (GstBusClass), 232},
{"GstBus", sizeof (GstBus), 128},
{"GstCaps", sizeof (GstCaps), 64},
- {"GstChildProxyInterface", sizeof (GstChildProxyInterface), 88},
{"GstClockClass", sizeof (GstClockClass), 264},
{"GstClockEntry", sizeof (GstClockEntry), 112},
{"GstClock", sizeof (GstClock), 128},
@@ -45,7 +44,6 @@ static GstCheckABIStruct list[] = {
{"GstPipelineClass", sizeof (GstPipelineClass), 608},
{"GstPipeline", sizeof (GstPipeline), 440},
{"GstPluginDesc", sizeof (GstPluginDesc), 112},
- {"GstPresetInterface", sizeof (GstPresetInterface), 112},
{"GstProxyPadClass", sizeof (GstProxyPadClass), 240},
{"GstProxyPad", sizeof (GstProxyPad), 528},
{"GstQuery", sizeof (GstQuery), 72},
@@ -58,15 +56,12 @@ static GstCheckABIStruct list[] = {
{"GstSystemClockClass", sizeof (GstSystemClockClass), 296},
{"GstSystemClock", sizeof (GstSystemClock), 168},
{"GstTagList", sizeof (GstTagList), 64,},
- {"GstTagSetterInterface", sizeof (GstTagSetterInterface), 16},
{"GstTaskClass", sizeof (GstTaskClass), 224},
{"GstTask", sizeof (GstTask), 200},
{"GstTaskPoolClass", sizeof (GstTaskPoolClass), 248},
{"GstTaskPool", sizeof (GstTaskPool), 128},
{"GstTimedValue", sizeof (GstTimedValue), 16},
- {"GstTocSetterInterface", sizeof (GstTocSetterInterface), 16},
{"GstTypeFind", sizeof (GstTypeFind), 64},
- {"GstURIHandlerInterface", sizeof (GstURIHandlerInterface), 48},
{"GstValueTable", sizeof (GstValueTable), 64},
{NULL, 0, 0}
};
diff --git a/tests/check/gst/struct_i386.h b/tests/check/gst/struct_i386.h
index 372685a..33363e6 100644
--- a/tests/check/gst/struct_i386.h
+++ b/tests/check/gst/struct_i386.h
@@ -11,7 +11,6 @@ static GstCheckABIStruct list[] = {
{"GstBusClass", sizeof (GstBusClass), 116},
{"GstBus", sizeof (GstBus), 76},
{"GstCaps", sizeof (GstCaps), 36},
- {"GstChildProxyInterface", sizeof (GstChildProxyInterface), 44},
{"GstClockClass", sizeof (GstClockClass), 132},
{"GstClockEntry", sizeof (GstClockEntry), 68},
{"GstClock", sizeof (GstClock), 76},
@@ -45,7 +44,6 @@ static GstCheckABIStruct list[] = {
{"GstPipelineClass", sizeof (GstPipelineClass), 308},
{"GstPipeline", sizeof (GstPipeline), 272},
{"GstPluginDesc", sizeof (GstPluginDesc), 60},
- {"GstPresetInterface", sizeof (GstPresetInterface), 56},
{"GstProxyPadClass", sizeof (GstProxyPadClass), 120},
{"GstProxyPad", sizeof (GstProxyPad), 292},
{"GstQuery", sizeof (GstQuery), 40},
@@ -58,15 +56,12 @@ static GstCheckABIStruct list[] = {
{"GstSystemClockClass", sizeof (GstSystemClockClass), 148},
{"GstSystemClock", sizeof (GstSystemClock), 96},
{"GstTagList", sizeof (GstTagList), 36},
- {"GstTagSetterInterface", sizeof (GstTagSetterInterface), 8},
{"GstTaskClass", sizeof (GstTaskClass), 112},
{"GstTask", sizeof (GstTask), 116},
{"GstTaskPoolClass", sizeof (GstTaskPoolClass), 124},
{"GstTaskPool", sizeof (GstTaskPool), 76},
{"GstTimedValue", sizeof (GstTimedValue), 16},
- {"GstTocSetterInterface", sizeof (GstTocSetterInterface), 8},
{"GstTypeFind", sizeof (GstTypeFind), 32},
- {"GstURIHandlerInterface", sizeof (GstURIHandlerInterface), 24},
{"GstValueTable", sizeof (GstValueTable), 32},
{NULL, 0, 0}
};
diff --git a/tests/check/gst/struct_ppc32.h b/tests/check/gst/struct_ppc32.h
index fc7a571..91c0386 100644
--- a/tests/check/gst/struct_ppc32.h
+++ b/tests/check/gst/struct_ppc32.h
@@ -11,7 +11,6 @@ static GstCheckABIStruct list[] = {
{"GstBusClass", sizeof (GstBusClass), 116},
{"GstBus", sizeof (GstBus), 88},
{"GstCaps", sizeof (GstCaps), 36},
- {"GstChildProxyInterface", sizeof (GstChildProxyInterface), 44},
{"GstClockClass", sizeof (GstClockClass), 132},
{"GstClockEntry", sizeof (GstClockEntry), 72},
{"GstClock", sizeof (GstClock), 88},
@@ -45,7 +44,6 @@ static GstCheckABIStruct list[] = {
{"GstPipelineClass", sizeof (GstPipelineClass), 308},
{"GstPipeline", sizeof (GstPipeline), 296},
{"GstPluginDesc", sizeof (GstPluginDesc), 60},
- {"GstPresetInterface", sizeof (GstPresetInterface), 56},
{"GstProxyPadClass", sizeof (GstProxyPadClass), 120},
{"GstProxyPad", sizeof (GstProxyPad), 312},
{"GstQuery", sizeof (GstQuery), 40},
@@ -58,15 +56,12 @@ static GstCheckABIStruct list[] = {
{"GstSystemClockClass", sizeof (GstSystemClockClass), 148},
{"GstSystemClock", sizeof (GstSystemClock), 112},
{"GstTagList", sizeof (GstTagList), 36},
- {"GstTagSetterInterface", sizeof (GstTagSetterInterface), 8},
{"GstTaskClass", sizeof (GstTaskClass), 112},
{"GstTask", sizeof (GstTask), 128},
{"GstTaskPoolClass", sizeof (GstTaskPoolClass), 124},
{"GstTaskPool", sizeof (GstTaskPool), 88},
{"GstTimedValue", sizeof (GstTimedValue), 16},
- {"GstTocSetterInterface", sizeof (GstTocSetterInterface), 8},
{"GstTypeFind", sizeof (GstTypeFind), 32},
- {"GstURIHandlerInterface", sizeof (GstURIHandlerInterface), 24},
{"GstValueTable", sizeof (GstValueTable), 32},
{NULL, 0, 0}
};
diff --git a/tests/check/gst/struct_ppc64.h b/tests/check/gst/struct_ppc64.h
index b7a2952..5794580 100644
--- a/tests/check/gst/struct_ppc64.h
+++ b/tests/check/gst/struct_ppc64.h
@@ -11,7 +11,6 @@ static GstCheckABIStruct list[] = {
{"GstBusClass", sizeof (GstBusClass), 232},
{"GstBus", sizeof (GstBus), 128},
{"GstCaps", sizeof (GstCaps), 64},
- {"GstChildProxyInterface", sizeof (GstChildProxyInterface), 88},
{"GstClockClass", sizeof (GstClockClass), 264},
{"GstClockEntry", sizeof (GstClockEntry), 112},
{"GstClock", sizeof (GstClock), 128},
@@ -45,7 +44,6 @@ static GstCheckABIStruct list[] = {
{"GstPipelineClass", sizeof (GstPipelineClass), 608},
{"GstPipeline", sizeof (GstPipeline), 440},
{"GstPluginDesc", sizeof (GstPluginDesc), 112},
- {"GstPresetInterface", sizeof (GstPresetInterface), 112},
{"GstProxyPadClass", sizeof (GstProxyPadClass), 240},
{"GstProxyPad", sizeof (GstProxyPad), 528},
{"GstQuery", sizeof (GstQuery), 72},
@@ -58,15 +56,12 @@ static GstCheckABIStruct list[] = {
{"GstSystemClockClass", sizeof (GstSystemClockClass), 296},
{"GstSystemClock", sizeof (GstSystemClock), 168},
{"GstTagList", sizeof (GstTagList), 64,},
- {"GstTagSetterInterface", sizeof (GstTagSetterInterface), 16},
{"GstTaskClass", sizeof (GstTaskClass), 224},
{"GstTask", sizeof (GstTask), 200},
{"GstTaskPoolClass", sizeof (GstTaskPoolClass), 248},
{"GstTaskPool", sizeof (GstTaskPool), 128},
{"GstTimedValue", sizeof (GstTimedValue), 16},
- {"GstTocSetterInterface", sizeof (GstTocSetterInterface), 16},
{"GstTypeFind", sizeof (GstTypeFind), 64},
- {"GstURIHandlerInterface", sizeof (GstURIHandlerInterface), 48},
{"GstValueTable", sizeof (GstValueTable), 64},
{NULL, 0, 0}
};
diff --git a/tests/check/gst/struct_sparc.h b/tests/check/gst/struct_sparc.h
index b7a2952..5794580 100644
--- a/tests/check/gst/struct_sparc.h
+++ b/tests/check/gst/struct_sparc.h
@@ -11,7 +11,6 @@ static GstCheckABIStruct list[] = {
{"GstBusClass", sizeof (GstBusClass), 232},
{"GstBus", sizeof (GstBus), 128},
{"GstCaps", sizeof (GstCaps), 64},
- {"GstChildProxyInterface", sizeof (GstChildProxyInterface), 88},
{"GstClockClass", sizeof (GstClockClass), 264},
{"GstClockEntry", sizeof (GstClockEntry), 112},
{"GstClock", sizeof (GstClock), 128},
@@ -45,7 +44,6 @@ static GstCheckABIStruct list[] = {
{"GstPipelineClass", sizeof (GstPipelineClass), 608},
{"GstPipeline", sizeof (GstPipeline), 440},
{"GstPluginDesc", sizeof (GstPluginDesc), 112},
- {"GstPresetInterface", sizeof (GstPresetInterface), 112},
{"GstProxyPadClass", sizeof (GstProxyPadClass), 240},
{"GstProxyPad", sizeof (GstProxyPad), 528},
{"GstQuery", sizeof (GstQuery), 72},
@@ -58,15 +56,12 @@ static GstCheckABIStruct list[] = {
{"GstSystemClockClass", sizeof (GstSystemClockClass), 296},
{"GstSystemClock", sizeof (GstSystemClock), 168},
{"GstTagList", sizeof (GstTagList), 64,},
- {"GstTagSetterInterface", sizeof (GstTagSetterInterface), 16},
{"GstTaskClass", sizeof (GstTaskClass), 224},
{"GstTask", sizeof (GstTask), 200},
{"GstTaskPoolClass", sizeof (GstTaskPoolClass), 248},
{"GstTaskPool", sizeof (GstTaskPool), 128},
{"GstTimedValue", sizeof (GstTimedValue), 16},
- {"GstTocSetterInterface", sizeof (GstTocSetterInterface), 16},
{"GstTypeFind", sizeof (GstTypeFind), 64},
- {"GstURIHandlerInterface", sizeof (GstURIHandlerInterface), 48},
{"GstValueTable", sizeof (GstValueTable), 64},
{NULL, 0, 0}
};
diff --git a/tests/check/gst/struct_x86_64.h b/tests/check/gst/struct_x86_64.h
index b7a2952..5794580 100644
--- a/tests/check/gst/struct_x86_64.h
+++ b/tests/check/gst/struct_x86_64.h
@@ -11,7 +11,6 @@ static GstCheckABIStruct list[] = {
{"GstBusClass", sizeof (GstBusClass), 232},
{"GstBus", sizeof (GstBus), 128},
{"GstCaps", sizeof (GstCaps), 64},
- {"GstChildProxyInterface", sizeof (GstChildProxyInterface), 88},
{"GstClockClass", sizeof (GstClockClass), 264},
{"GstClockEntry", sizeof (GstClockEntry), 112},
{"GstClock", sizeof (GstClock), 128},
@@ -45,7 +44,6 @@ static GstCheckABIStruct list[] = {
{"GstPipelineClass", sizeof (GstPipelineClass), 608},
{"GstPipeline", sizeof (GstPipeline), 440},
{"GstPluginDesc", sizeof (GstPluginDesc), 112},
- {"GstPresetInterface", sizeof (GstPresetInterface), 112},
{"GstProxyPadClass", sizeof (GstProxyPadClass), 240},
{"GstProxyPad", sizeof (GstProxyPad), 528},
{"GstQuery", sizeof (GstQuery), 72},
@@ -58,15 +56,12 @@ static GstCheckABIStruct list[] = {
{"GstSystemClockClass", sizeof (GstSystemClockClass), 296},
{"GstSystemClock", sizeof (GstSystemClock), 168},
{"GstTagList", sizeof (GstTagList), 64,},
- {"GstTagSetterInterface", sizeof (GstTagSetterInterface), 16},
{"GstTaskClass", sizeof (GstTaskClass), 224},
{"GstTask", sizeof (GstTask), 200},
{"GstTaskPoolClass", sizeof (GstTaskPoolClass), 248},
{"GstTaskPool", sizeof (GstTaskPool), 128},
{"GstTimedValue", sizeof (GstTimedValue), 16},
- {"GstTocSetterInterface", sizeof (GstTocSetterInterface), 16},
{"GstTypeFind", sizeof (GstTypeFind), 64},
- {"GstURIHandlerInterface", sizeof (GstURIHandlerInterface), 48},
{"GstValueTable", sizeof (GstValueTable), 64},
{NULL, 0, 0}
};
diff --git a/tests/check/libs/adapter.c b/tests/check/libs/adapter.c
index df740f9..a99c8e0 100644
--- a/tests/check/libs/adapter.c
+++ b/tests/check/libs/adapter.c
@@ -834,6 +834,70 @@ GST_START_TEST (test_merge)
GST_END_TEST;
+GST_START_TEST (test_take_buffer_fast)
+{
+ GstAdapter *adapter;
+ GstBuffer *buffer;
+
+ adapter = gst_adapter_new ();
+ fail_if (adapter == NULL);
+
+ buffer = gst_buffer_new_and_alloc (5);
+ fail_if (buffer == NULL);
+ gst_adapter_push (adapter, buffer);
+
+ buffer = gst_buffer_new_and_alloc (10);
+ fail_if (buffer == NULL);
+ gst_adapter_push (adapter, buffer);
+
+ buffer = gst_buffer_new_and_alloc (15);
+ fail_if (buffer == NULL);
+ gst_adapter_push (adapter, buffer);
+
+ fail_unless (gst_adapter_available (adapter) == 30);
+
+ buffer = gst_adapter_take_buffer_fast (adapter, 30);
+ fail_unless (gst_adapter_available (adapter) == 0);
+ fail_unless (gst_buffer_n_memory (buffer) == 3);
+ fail_unless (gst_buffer_get_sizes_range (buffer, 0, 1, NULL, NULL) == 5);
+ fail_unless (gst_buffer_get_sizes_range (buffer, 1, 1, NULL, NULL) == 10);
+ fail_unless (gst_buffer_get_sizes_range (buffer, 2, 1, NULL, NULL) == 15);
+ gst_buffer_unref (buffer);
+
+ fail_unless (gst_adapter_available (adapter) == 0);
+
+ buffer = gst_buffer_new_and_alloc (10);
+ fail_if (buffer == NULL);
+ gst_adapter_push (adapter, buffer);
+
+ buffer = gst_buffer_new_and_alloc (20);
+ fail_if (buffer == NULL);
+ gst_adapter_push (adapter, buffer);
+
+ gst_adapter_flush (adapter, 2);
+ fail_unless (gst_adapter_available (adapter) == 28);
+
+ buffer = gst_adapter_take_buffer_fast (adapter, 10);
+ fail_unless (gst_buffer_n_memory (buffer) == 2);
+ fail_unless (gst_buffer_get_sizes_range (buffer, 0, 1, NULL, NULL) == 8);
+ fail_unless (gst_buffer_get_sizes_range (buffer, 1, 1, NULL, NULL) == 2);
+ fail_unless (gst_adapter_available (adapter) == 18);
+ gst_buffer_unref (buffer);
+
+ buffer = gst_adapter_take_buffer_fast (adapter, 8);
+ fail_unless (gst_buffer_n_memory (buffer) == 1);
+ fail_unless (gst_buffer_get_size (buffer) == 8);
+ fail_unless (gst_adapter_available (adapter) == 10);
+ gst_buffer_unref (buffer);
+
+ gst_adapter_clear (adapter);
+ fail_unless (gst_adapter_available (adapter) == 0);
+
+ g_object_unref (adapter);
+}
+
+GST_END_TEST;
+
static Suite *
gst_adapter_suite (void)
{
@@ -853,6 +917,7 @@ gst_adapter_suite (void)
tcase_add_test (tc_chain, test_scan);
tcase_add_test (tc_chain, test_take_list);
tcase_add_test (tc_chain, test_merge);
+ tcase_add_test (tc_chain, test_take_buffer_fast);
return s;
}