common/: Use socket.url
[libquvi-scripts.git] / tests / media / media_gaskrank.c
blob4301eae5ddda9aaabe80860e746efcf6cc3d2da4
1 /* libquvi-scripts
2 * Copyright (C) 2012 Toni Gundogdu <legatvs@gmail.com>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 * 02110-1301 USA
20 #include "config.h"
22 #include <string.h>
23 #include <glib.h>
24 #include <quvi.h>
26 #include "tests.h"
28 static const gchar *URLs[] =
30 "http://www.gaskrank.tv/tv/motorrad-oldtimer/1928-henderson-deluxe-alt-und--19115.htm",
31 "http://www.gaskrank.tv/tv/rennstrecken/idm-streckenvorstellung-schleiz-von-michael-ranseder.htm",
32 NULL
35 static const gchar *TITLEs[] =
37 "1928 Henderson Deluxe - alt und mit der Patina des Alters aber läuft",
38 "IDM Streckenvorstellung Schleiz von Michael Ranseder",
39 NULL
42 static const gchar *IDs[] =
44 "19115",
45 "19746",
46 NULL
49 static void test_media_gaskrank()
51 struct qm_test_exact_s e;
52 struct qm_test_opts_s o;
53 gint i;
55 for (i=0; URLs[i] != NULL; ++i)
57 memset(&e, 0, sizeof(e));
58 memset(&o, 0, sizeof(o));
60 e.title = TITLEs[i];
61 e.id = IDs[i];
63 qm_test(__func__, URLs[i], &e, &o);
67 gint main(gint argc, gchar **argv)
69 g_test_init(&argc, &argv, NULL);
70 g_test_add_func("/media/gaskrank", test_media_gaskrank);
71 return (g_test_run());
74 /* vim: set ts=2 sw=2 tw=72 expandtab: */