|
Packit Service |
963350 |
/* GStreamer
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* unit test for GstToc
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* Copyright (C) 2010, 2012 Alexander Saprykin <xelfium@gmail.com>
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* This library is free software; you can redistribute it and/or
|
|
Packit Service |
963350 |
* modify it under the terms of the GNU Library General Public
|
|
Packit Service |
963350 |
* License as published by the Free Software Foundation; either
|
|
Packit Service |
963350 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* This library is distributed in the hope that it will be useful,
|
|
Packit Service |
963350 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
963350 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
963350 |
* Library General Public License for more details.
|
|
Packit Service |
963350 |
*
|
|
Packit Service |
963350 |
* You should have received a copy of the GNU Library General Public
|
|
Packit Service |
963350 |
* License along with this library; if not, write to the
|
|
Packit Service |
963350 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit Service |
963350 |
* Boston, MA 02110-1301, USA.
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* ------- TOC -------
|
|
Packit Service |
963350 |
* / \
|
|
Packit Service |
963350 |
* edition1 edition2
|
|
Packit Service |
963350 |
* | |
|
|
Packit Service |
963350 |
* -chapter1 -chapter3
|
|
Packit Service |
963350 |
* -chapter2 |
|
|
Packit Service |
963350 |
* -subchapter1
|
|
Packit Service |
963350 |
*/
|
|
Packit Service |
963350 |
#ifdef HAVE_CONFIG_H
|
|
Packit Service |
963350 |
#include "config.h"
|
|
Packit Service |
963350 |
#endif
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#include <gst/check/gstcheck.h>
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#define ENTRY_ED1 "/edition1"
|
|
Packit Service |
963350 |
#define ENTRY_ED2 "/edition2"
|
|
Packit Service |
963350 |
#define ENTRY_ED3 "test-edition"
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#define ENTRY_CH1 "/edition1/chapter1"
|
|
Packit Service |
963350 |
#define ENTRY_CH2 "/edition1/chapter2"
|
|
Packit Service |
963350 |
#define ENTRY_CH3 "/edition2/chapter3"
|
|
Packit Service |
963350 |
#define ENTRY_CH4 "/test-chapter"
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#define ENTRY_SUB1 "/edition2/chapter3/subchapter1"
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#define ENTRY_TAG "EntryTag"
|
|
Packit Service |
963350 |
#define TOC_TAG "TocTag"
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
#define TEST_UID "129537542"
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
static void
|
|
Packit Service |
963350 |
CHECK_TOC_ENTRY (GstTocEntry * entry_c, GstTocEntryType type_c,
|
|
Packit Service |
963350 |
const gchar * uid_c)
|
|
Packit Service |
963350 |
{
|
|
Packit Service |
963350 |
GstTagList *tags;
|
|
Packit Service |
963350 |
gchar *tag_c;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
fail_unless_equals_string (gst_toc_entry_get_uid (entry_c), uid_c);
|
|
Packit Service |
963350 |
fail_unless (gst_toc_entry_get_entry_type (entry_c) == type_c);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
tags = gst_toc_entry_get_tags (entry_c);
|
|
Packit Service |
963350 |
fail_unless (tags != NULL);
|
|
Packit Service |
963350 |
fail_unless (gst_tag_list_get_string (tags, GST_TAG_TITLE, &tag_c));
|
|
Packit Service |
963350 |
fail_unless_equals_string (tag_c, ENTRY_TAG);
|
|
Packit Service |
963350 |
g_free (tag_c);
|
|
Packit Service |
963350 |
}
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
static void
|
|
Packit Service |
963350 |
CHECK_TOC (GstToc * toc_t)
|
|
Packit Service |
963350 |
{
|
|
Packit Service |
963350 |
GstTocEntry *entry_t, *subentry_t;
|
|
Packit Service |
963350 |
GstTagList *tags;
|
|
Packit Service |
963350 |
GList *entries, *subentries, *subsubentries;
|
|
Packit Service |
963350 |
gchar *tag_t;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* dump TOC */
|
|
Packit Service |
963350 |
gst_toc_dump (toc_t);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* check TOC */
|
|
Packit Service |
963350 |
tags = gst_toc_get_tags (toc_t);
|
|
Packit Service |
963350 |
fail_unless (tags != NULL);
|
|
Packit Service |
963350 |
fail_unless (gst_tag_list_get_string (tags, GST_TAG_TITLE, &tag_t));
|
|
Packit Service |
963350 |
fail_unless_equals_string (tag_t, TOC_TAG);
|
|
Packit Service |
963350 |
g_free (tag_t);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
entries = gst_toc_get_entries (toc_t);
|
|
Packit Service |
963350 |
fail_unless_equals_int (g_list_length (entries), 2);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* check edition1 */
|
|
Packit Service |
963350 |
entry_t = g_list_nth_data (entries, 0);
|
|
Packit Service |
963350 |
fail_if (entry_t == NULL);
|
|
Packit Service |
963350 |
subentries = gst_toc_entry_get_sub_entries (entry_t);
|
|
Packit Service |
963350 |
fail_unless_equals_int (g_list_length (subentries), 2);
|
|
Packit Service |
963350 |
CHECK_TOC_ENTRY (entry_t, GST_TOC_ENTRY_TYPE_EDITION, ENTRY_ED1);
|
|
Packit Service |
963350 |
/* check chapter1 */
|
|
Packit Service |
963350 |
subentry_t = g_list_nth_data (subentries, 0);
|
|
Packit Service |
963350 |
fail_if (subentry_t == NULL);
|
|
Packit Service |
963350 |
subsubentries = gst_toc_entry_get_sub_entries (subentry_t);
|
|
Packit Service |
963350 |
fail_unless_equals_int (g_list_length (subsubentries), 0);
|
|
Packit Service |
963350 |
CHECK_TOC_ENTRY (subentry_t, GST_TOC_ENTRY_TYPE_CHAPTER, ENTRY_CH1);
|
|
Packit Service |
963350 |
/* check chapter2 */
|
|
Packit Service |
963350 |
subentry_t = g_list_nth_data (subentries, 1);
|
|
Packit Service |
963350 |
fail_if (subentry_t == NULL);
|
|
Packit Service |
963350 |
subsubentries = gst_toc_entry_get_sub_entries (subentry_t);
|
|
Packit Service |
963350 |
fail_unless_equals_int (g_list_length (subsubentries), 0);
|
|
Packit Service |
963350 |
CHECK_TOC_ENTRY (subentry_t, GST_TOC_ENTRY_TYPE_CHAPTER, ENTRY_CH2);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* check edition2 */
|
|
Packit Service |
963350 |
entry_t = g_list_nth_data (entries, 1);
|
|
Packit Service |
963350 |
fail_if (entry_t == NULL);
|
|
Packit Service |
963350 |
CHECK_TOC_ENTRY (entry_t, GST_TOC_ENTRY_TYPE_EDITION, ENTRY_ED2);
|
|
Packit Service |
963350 |
subentries = gst_toc_entry_get_sub_entries (entry_t);
|
|
Packit Service |
963350 |
fail_unless_equals_int (g_list_length (subentries), 1);
|
|
Packit Service |
963350 |
/* check chapter3 */
|
|
Packit Service |
963350 |
subentry_t = g_list_nth_data (subentries, 0);
|
|
Packit Service |
963350 |
fail_if (subentry_t == NULL);
|
|
Packit Service |
963350 |
CHECK_TOC_ENTRY (subentry_t, GST_TOC_ENTRY_TYPE_CHAPTER, ENTRY_CH3);
|
|
Packit Service |
963350 |
subsubentries = gst_toc_entry_get_sub_entries (subentry_t);
|
|
Packit Service |
963350 |
fail_unless_equals_int (g_list_length (subsubentries), 1);
|
|
Packit Service |
963350 |
/* check subchapter1 */
|
|
Packit Service |
963350 |
subentry_t = g_list_nth_data (subsubentries, 0);
|
|
Packit Service |
963350 |
fail_if (subentry_t == NULL);
|
|
Packit Service |
963350 |
CHECK_TOC_ENTRY (subentry_t, GST_TOC_ENTRY_TYPE_CHAPTER, ENTRY_SUB1);
|
|
Packit Service |
963350 |
subsubentries = gst_toc_entry_get_sub_entries (subentry_t);
|
|
Packit Service |
963350 |
fail_unless_equals_int (g_list_length (subsubentries), 0);
|
|
Packit Service |
963350 |
}
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* This whole test is a bit pointless now that we just stuff a ref of
|
|
Packit Service |
963350 |
* the original TOC into the message/query/event */
|
|
Packit Service |
963350 |
GST_START_TEST (test_serializing)
|
|
Packit Service |
963350 |
{
|
|
Packit Service |
963350 |
GstToc *toc, *test_toc = NULL;
|
|
Packit Service |
963350 |
GstTocEntry *ed, *ch, *subch;
|
|
Packit Service |
963350 |
GstTagList *tags;
|
|
Packit Service |
963350 |
GstEvent *event;
|
|
Packit Service |
963350 |
GstMessage *message;
|
|
Packit Service |
963350 |
gboolean updated;
|
|
Packit Service |
963350 |
gchar *uid;
|
|
Packit Service |
963350 |
gint64 start = -1, stop = -1;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
toc = gst_toc_new (GST_TOC_SCOPE_GLOBAL);
|
|
Packit Service |
963350 |
fail_unless_equals_int (gst_toc_get_scope (toc), GST_TOC_SCOPE_GLOBAL);
|
|
Packit Service |
963350 |
fail_if (toc == NULL);
|
|
Packit Service |
963350 |
tags = gst_tag_list_new (GST_TAG_TITLE, TOC_TAG, NULL);
|
|
Packit Service |
963350 |
gst_toc_set_tags (toc, tags);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* create edition1 */
|
|
Packit Service |
963350 |
ed = gst_toc_entry_new (GST_TOC_ENTRY_TYPE_EDITION, ENTRY_ED1);
|
|
Packit Service |
963350 |
fail_if (ed == NULL);
|
|
Packit Service |
963350 |
tags = gst_tag_list_new (GST_TAG_TITLE, ENTRY_TAG, NULL);
|
|
Packit Service |
963350 |
gst_toc_entry_set_tags (ed, tags);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
CHECK_TOC_ENTRY (ed, GST_TOC_ENTRY_TYPE_EDITION, ENTRY_ED1);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* append chapter1 to edition1 */
|
|
Packit Service |
963350 |
ch = gst_toc_entry_new (GST_TOC_ENTRY_TYPE_CHAPTER, ENTRY_CH1);
|
|
Packit Service |
963350 |
fail_if (ch == NULL);
|
|
Packit Service |
963350 |
tags = gst_tag_list_new (GST_TAG_TITLE, ENTRY_TAG, NULL);
|
|
Packit Service |
963350 |
gst_toc_entry_set_tags (ch, tags);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
CHECK_TOC_ENTRY (ch, GST_TOC_ENTRY_TYPE_CHAPTER, ENTRY_CH1);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
gst_toc_entry_append_sub_entry (ed, ch);
|
|
Packit Service |
963350 |
fail_unless_equals_int (g_list_length (gst_toc_entry_get_sub_entries (ed)),
|
|
Packit Service |
963350 |
1);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* append chapter2 to edition1 */
|
|
Packit Service |
963350 |
ch = gst_toc_entry_new (GST_TOC_ENTRY_TYPE_CHAPTER, ENTRY_CH2);
|
|
Packit Service |
963350 |
fail_if (ch == NULL);
|
|
Packit Service |
963350 |
tags = gst_tag_list_new (GST_TAG_TITLE, ENTRY_TAG, NULL);
|
|
Packit Service |
963350 |
gst_toc_entry_set_tags (ch, tags);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
CHECK_TOC_ENTRY (ch, GST_TOC_ENTRY_TYPE_CHAPTER, ENTRY_CH2);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
gst_toc_entry_append_sub_entry (ed, ch);
|
|
Packit Service |
963350 |
fail_unless_equals_int (g_list_length (gst_toc_entry_get_sub_entries (ed)),
|
|
Packit Service |
963350 |
2);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* append edition1 to the TOC */
|
|
Packit Service |
963350 |
gst_toc_append_entry (toc, ed);
|
|
Packit Service |
963350 |
fail_unless_equals_int (g_list_length (gst_toc_get_entries (toc)), 1);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* test gst_toc_entry_find() */
|
|
Packit Service |
963350 |
ed = NULL;
|
|
Packit Service |
963350 |
ed = gst_toc_find_entry (toc, ENTRY_ED1);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
fail_if (ed == NULL);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
CHECK_TOC_ENTRY (ed, GST_TOC_ENTRY_TYPE_EDITION, ENTRY_ED1);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* test info GstStructure */
|
|
Packit Service |
963350 |
gst_toc_entry_set_start_stop_times (ch, 100, 1000);
|
|
Packit Service |
963350 |
fail_if (!gst_toc_entry_get_start_stop_times (ch, &start, &stop));
|
|
Packit Service |
963350 |
fail_unless (start == 100);
|
|
Packit Service |
963350 |
fail_unless (stop == 1000);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* create edition2 */
|
|
Packit Service |
963350 |
ed = gst_toc_entry_new (GST_TOC_ENTRY_TYPE_EDITION, ENTRY_ED2);
|
|
Packit Service |
963350 |
fail_if (ed == NULL);
|
|
Packit Service |
963350 |
tags = gst_tag_list_new (GST_TAG_TITLE, ENTRY_TAG, NULL);
|
|
Packit Service |
963350 |
gst_toc_entry_set_tags (ed, tags);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
CHECK_TOC_ENTRY (ed, GST_TOC_ENTRY_TYPE_EDITION, ENTRY_ED2);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* create chapter3 */
|
|
Packit Service |
963350 |
ch = gst_toc_entry_new (GST_TOC_ENTRY_TYPE_CHAPTER, ENTRY_CH3);
|
|
Packit Service |
963350 |
fail_if (ch == NULL);
|
|
Packit Service |
963350 |
tags = gst_tag_list_new (GST_TAG_TITLE, ENTRY_TAG, NULL);
|
|
Packit Service |
963350 |
gst_toc_entry_set_tags (ch, tags);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
CHECK_TOC_ENTRY (ch, GST_TOC_ENTRY_TYPE_CHAPTER, ENTRY_CH3);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* create subchapter1 */
|
|
Packit Service |
963350 |
subch = gst_toc_entry_new (GST_TOC_ENTRY_TYPE_CHAPTER, ENTRY_SUB1);
|
|
Packit Service |
963350 |
fail_if (subch == NULL);
|
|
Packit Service |
963350 |
tags = gst_tag_list_new (GST_TAG_TITLE, ENTRY_TAG, NULL);
|
|
Packit Service |
963350 |
gst_toc_entry_set_tags (subch, tags);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
CHECK_TOC_ENTRY (subch, GST_TOC_ENTRY_TYPE_CHAPTER, ENTRY_SUB1);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* append subchapter1 to chapter3 */
|
|
Packit Service |
963350 |
gst_toc_entry_append_sub_entry (ch, subch);
|
|
Packit Service |
963350 |
fail_unless_equals_int (g_list_length (gst_toc_entry_get_sub_entries (ch)),
|
|
Packit Service |
963350 |
1);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* append chapter3 to edition2 */
|
|
Packit Service |
963350 |
gst_toc_entry_append_sub_entry (ed, ch);
|
|
Packit Service |
963350 |
fail_unless_equals_int (g_list_length (gst_toc_entry_get_sub_entries (ed)),
|
|
Packit Service |
963350 |
1);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* finally append edition2 to the TOC */
|
|
Packit Service |
963350 |
gst_toc_append_entry (toc, ed);
|
|
Packit Service |
963350 |
fail_unless_equals_int (g_list_length (gst_toc_get_entries (toc)), 2);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GST_INFO ("check original TOC");
|
|
Packit Service |
963350 |
CHECK_TOC (toc);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* test gst_toc_copy() */
|
|
Packit Service |
963350 |
test_toc = gst_toc_copy (toc);
|
|
Packit Service |
963350 |
fail_if (test_toc == NULL);
|
|
Packit Service |
963350 |
GST_INFO ("check TOC copy");
|
|
Packit Service |
963350 |
CHECK_TOC (test_toc);
|
|
Packit Service |
963350 |
gst_toc_unref (test_toc);
|
|
Packit Service |
963350 |
test_toc = NULL;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* check TOC event handling */
|
|
Packit Service |
963350 |
event = gst_event_new_toc (toc, TRUE);
|
|
Packit Service |
963350 |
fail_if (event == NULL);
|
|
Packit Service |
963350 |
fail_unless (event->type == GST_EVENT_TOC);
|
|
Packit Service |
963350 |
ASSERT_MINI_OBJECT_REFCOUNT (GST_MINI_OBJECT (event), "GstEvent", 1);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
gst_event_parse_toc (event, &test_toc, &updated);
|
|
Packit Service |
963350 |
fail_unless (updated == TRUE);
|
|
Packit Service |
963350 |
fail_if (test_toc == NULL);
|
|
Packit Service |
963350 |
GST_INFO ("check TOC parsed from event");
|
|
Packit Service |
963350 |
CHECK_TOC (test_toc);
|
|
Packit Service |
963350 |
gst_toc_unref (test_toc);
|
|
Packit Service |
963350 |
gst_event_unref (event);
|
|
Packit Service |
963350 |
updated = FALSE;
|
|
Packit Service |
963350 |
test_toc = NULL;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* check TOC message handling */
|
|
Packit Service |
963350 |
message = gst_message_new_toc (NULL, toc, TRUE);
|
|
Packit Service |
963350 |
fail_if (message == NULL);
|
|
Packit Service |
963350 |
fail_unless (message->type == GST_MESSAGE_TOC);
|
|
Packit Service |
963350 |
ASSERT_MINI_OBJECT_REFCOUNT (GST_MINI_OBJECT (message), "GstMessage", 1);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
gst_message_parse_toc (message, &test_toc, &updated);
|
|
Packit Service |
963350 |
fail_unless (updated == TRUE);
|
|
Packit Service |
963350 |
fail_if (test_toc == NULL);
|
|
Packit Service |
963350 |
CHECK_TOC (test_toc);
|
|
Packit Service |
963350 |
gst_toc_unref (test_toc);
|
|
Packit Service |
963350 |
gst_message_unref (message);
|
|
Packit Service |
963350 |
test_toc = NULL;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* check TOC select event handling */
|
|
Packit Service |
963350 |
event = gst_event_new_toc_select (TEST_UID);
|
|
Packit Service |
963350 |
fail_if (event == NULL);
|
|
Packit Service |
963350 |
fail_unless (event->type == GST_EVENT_TOC_SELECT);
|
|
Packit Service |
963350 |
ASSERT_MINI_OBJECT_REFCOUNT (GST_MINI_OBJECT (event), "GstEvent", 1);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
gst_event_parse_toc_select (event, &uid);
|
|
Packit Service |
963350 |
fail_unless_equals_string (uid, TEST_UID);
|
|
Packit Service |
963350 |
gst_event_unref (event);
|
|
Packit Service |
963350 |
g_free (uid);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* FIXME: toc validation / verification should probably be done on the fly
|
|
Packit Service |
963350 |
* while creating it, and not when putting the toc in events or messages ? */
|
|
Packit Service |
963350 |
#if 0
|
|
Packit Service |
963350 |
/* that's wrong code, we should fail */
|
|
Packit Service |
963350 |
ch = gst_toc_entry_new (GST_TOC_ENTRY_TYPE_CHAPTER, ENTRY_CH4);
|
|
Packit Service |
963350 |
toc->entries = g_list_prepend (toc->entries, ch);
|
|
Packit Service |
963350 |
ASSERT_CRITICAL (message = gst_message_new_toc (NULL, toc, TRUE));
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
/* and yet another one */
|
|
Packit Service |
963350 |
toc->entries = g_list_remove (toc->entries, ch);
|
|
Packit Service |
963350 |
gst_toc_entry_unref (ch);
|
|
Packit Service |
963350 |
ed = gst_toc_entry_new (GST_TOC_ENTRY_TYPE_EDITION, ENTRY_ED3);
|
|
Packit Service |
963350 |
ch = (GstTocEntry *) (toc->entries->data);
|
|
Packit Service |
963350 |
ch->subentries = g_list_prepend (ch->subentries, ed);
|
|
Packit Service |
963350 |
ASSERT_WARNING (message = gst_message_new_toc (NULL, toc, TRUE));
|
|
Packit Service |
963350 |
#endif
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
gst_toc_unref (toc);
|
|
Packit Service |
963350 |
}
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GST_END_TEST;
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
static Suite *
|
|
Packit Service |
963350 |
gst_toc_suite (void)
|
|
Packit Service |
963350 |
{
|
|
Packit Service |
963350 |
Suite *s = suite_create ("GstToc");
|
|
Packit Service |
963350 |
TCase *tc_chain = tcase_create ("general");
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
suite_add_tcase (s, tc_chain);
|
|
Packit Service |
963350 |
tcase_add_test (tc_chain, test_serializing);
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
return s;
|
|
Packit Service |
963350 |
}
|
|
Packit Service |
963350 |
|
|
Packit Service |
963350 |
GST_CHECK_MAIN (gst_toc);
|