1 /* GStreamer unit tests for GstURI
3 * Copyright (C) 2007 Tim-Philipp Müller <tim centricular net>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #include <gst/check/gstcheck.h>
23 GST_START_TEST (test_protocol_case)
27 element = gst_element_make_from_uri (GST_URI_SRC, "file:///foo/bar", NULL);
29 /* no element? probably no registry, bail out */
33 gst_object_unref (element);
34 element = gst_element_make_from_uri (GST_URI_SRC, "FILE:///foo/bar", NULL);
35 fail_unless (element != NULL,
36 "Got source for 'file://' URI but not for 'FILE://' URI");
37 gst_object_unref (element);
45 Suite *s = suite_create ("GstURI");
46 TCase *tc_chain = tcase_create ("uri");
48 tcase_set_timeout (tc_chain, 20);
50 suite_add_tcase (s, tc_chain);
51 tcase_add_test (tc_chain, test_protocol_case);
55 GST_CHECK_MAIN (gst_uri);