common/: Use socket.url
[libquvi-scripts.git] / tests / media / media_vimeo.c
blob7984412a89c00f01c3adc0e15ae67a805981adec
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 URL[] =
29 "http://vimeo.com/43530099";
31 static const gchar TITLE[] =
32 "Rosetta";
34 static const gchar ID[] =
35 "43530099";
37 static void test_media_vimeo()
39 struct qm_test_exact_s e;
40 struct qm_test_opts_s o;
42 memset(&e, 0, sizeof(e));
43 memset(&o, 0, sizeof(o));
45 e.title = TITLE;
46 e.id = ID;
48 /* String values. */
50 o.s_len_gt0.stream.video.encoding = TRUE;
52 /* Numerical values. */
54 o.gt0.duration_ms = TRUE;
56 qm_test(__func__, URL, &e, &o);
59 gint main(gint argc, gchar **argv)
61 g_test_init(&argc, &argv, NULL);
62 g_test_add_func("/media/vimeo", test_media_vimeo);
63 return (g_test_run());
66 /* vim: set ts=2 sw=2 tw=72 expandtab: */