summaryrefslogtreecommitdiff
path: root/tests/linkextractor_tests.h
diff options
context:
space:
mode:
authorAntti Ajanki <antti.ajanki@iki.fi>2013-08-06 09:07:49 +0300
committerAntti Ajanki <antti.ajanki@iki.fi>2013-08-06 09:07:49 +0300
commit7c81286a59639e139ac7e947378be24410701a5e (patch)
tree88e43b758dc2330e8711ebae80eee0039cc57322 /tests/linkextractor_tests.h
downloadvdr-plugin-webvideo-7c81286a59639e139ac7e947378be24410701a5e.tar.gz
vdr-plugin-webvideo-7c81286a59639e139ac7e947378be24410701a5e.tar.bz2
import to vdr-developer repo
Diffstat (limited to 'tests/linkextractor_tests.h')
-rw-r--r--tests/linkextractor_tests.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/linkextractor_tests.h b/tests/linkextractor_tests.h
new file mode 100644
index 0000000..49d2c7f
--- /dev/null
+++ b/tests/linkextractor_tests.h
@@ -0,0 +1,34 @@
+#ifndef LINK_EXTRACTOR_TESTS_H
+#define LINK_EXTRACTOR_TESTS_H
+
+#include "linkextractor.h"
+#include "linktemplates_tests.h"
+
+typedef struct {
+ struct LinkTemplates *templates;
+ struct LinkExtractor *extractor;
+} LinkExtractorFixture;
+
+void link_extractor_fixture_setup(LinkExtractorFixture *fixture,
+ gconstpointer test_data);
+void link_extractor_fixture_teardown(LinkExtractorFixture *fixture,
+ gconstpointer test_data);
+
+void test_link_extractor_extract(LinkExtractorFixture *fixture,
+ gconstpointer test_data);
+void test_link_extractor_unrecognized_link(LinkExtractorFixture *fixture,
+ gconstpointer test_data);
+void test_link_extractor_append(LinkExtractorFixture *fixture,
+ gconstpointer test_data);
+void test_link_extractor_invalid_html(LinkExtractorFixture *fixture,
+ gconstpointer test_data);
+void test_link_extractor_relative_urls(LinkExtractorFixture *fixture,
+ gconstpointer test_data);
+void test_link_extractor_html_title(LinkExtractorFixture *fixture,
+ G_GNUC_UNUSED gconstpointer test_data);
+
+void test_link_extractor_xml(LinkExtractorFixture *fixture,
+ gconstpointer test_data);
+
+
+#endif // LINK_EXTRACTOR_TESTS_H