summaryrefslogtreecommitdiff
path: root/gdata/tests/youtube.c
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2015-07-10 10:31:07 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2015-07-10 10:38:37 +0100
commitb5262ecca7237c414dcd6dc59ae0ba244c628242 (patch)
treecc2d1bd39079ca8edbceffe7a1e504ea6e61989a /gdata/tests/youtube.c
parent3ca4fbcc88dbf26a1edda79fbad9e819a11ae82d (diff)
downloadlibgdata-b5262ecca7237c414dcd6dc59ae0ba244c628242.tar.gz
tests: Remove an unused YouTube test
From way back in 2009. Time flies!
Diffstat (limited to 'gdata/tests/youtube.c')
-rw-r--r--gdata/tests/youtube.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/gdata/tests/youtube.c b/gdata/tests/youtube.c
index 5112d832..12f87c1d 100644
--- a/gdata/tests/youtube.c
+++ b/gdata/tests/youtube.c
@@ -1427,56 +1427,6 @@ test_parsing_yt_category (void)
g_object_unref (category);
}
-/*static void
-test_parsing_comments_feed_link (void)
-{
- GDataYouTubeVideo *video;
- GDataGDFeedLink *feed_link;
- GError *error = NULL;
-
- video = gdata_parsable_new_from_xml (GDATA_TYPE_YOUTUBE_VIDEO,
- "<entry xmlns='http://www.w3.org/2005/Atom' "
- "xmlns:media='http://search.yahoo.com/mrss/' "
- "xmlns:yt='http://gdata.youtube.com/schemas/2007' "
- "xmlns:gd='http://schemas.google.com/g/2005' "
- "gd:etag='W/\"CEMFSX47eCp7ImA9WxVUGEw.\"'>"
- "<id>tag:youtube.com,2008:video:JAagedeKdcQ</id>"
- "<published>2006-05-16T14:06:37.000Z</published>"
- "<updated>2009-03-23T12:46:58.000Z</updated>"
- "<category scheme='http://schemas.google.com/g/2005#kind' term='http://gdata.youtube.com/schemas/2007#video'/>"
- "<title>Judas Priest - Painkiller</title>"
- "<link rel='http://www.iana.org/assignments/relation/alternate' type='text/html' href='http://www.youtube.com/watch?v=JAagedeKdcQ'/>"
- "<link rel='http://www.iana.org/assignments/relation/self' type='application/atom+xml' href='http://gdata.youtube.com/feeds/api/videos/JAagedeKdcQ?client=ytapi-google-jsdemo'/>"
- "<author>"
- "<name>eluves</name>"
- "<uri>http://gdata.youtube.com/feeds/api/users/eluves</uri>"
- "</author>"
- "<media:group>"
- "<media:title type='plain'>Judas Priest - Painkiller</media:title>"
- "<media:credit role='uploader' scheme='urn:youtube'>eluves</media:credit>"
- "<media:category label='Music' scheme='http://gdata.youtube.com/schemas/2007/categories.cat'>Music</media:category>"
- "</media:group>"
- "<gd:comments>"
- "<gd:feedLink href='http://gdata.youtube.com/feeds/api/videos/JAagedeKdcQ/comments' countHint='13021'/>"
- "</gd:comments>"
- "</entry>", -1, &error);
- g_assert_no_error (error);
- g_assert (GDATA_IS_YOUTUBE_VIDEO (video));
- g_clear_error (&error);
-
- * Test the feed link *
- feed_link = gdata_youtube_video_get_comments_feed_link (video);
- g_assert (feed_link != NULL);
- g_assert (feed_link->rel == NULL);
- g_assert_cmpstr (feed_link->href, ==, "http://gdata.youtube.com/feeds/api/videos/JAagedeKdcQ/comments");
- g_assert_cmpuint (feed_link->count_hint, ==, 13021);
- g_assert (feed_link->read_only == FALSE);
-
- * TODO: more tests on entry properties *
-
- g_object_unref (video);
-}*/
-
static void
test_parsing_georss_where (void)
{
@@ -2706,7 +2656,6 @@ FIXME: Port and re-enable these tests
g_test_add_func ("/youtube/service/properties", test_service_properties);
g_test_add_func ("/youtube/parsing/app:control", test_parsing_app_control);
- /*g_test_add_func ("/youtube/parsing/comments/feedLink", test_parsing_comments_feed_link);*/
g_test_add_func ("/youtube/parsing/yt:recorded", test_parsing_yt_recorded);
g_test_add_func ("/youtube/parsing/yt:accessControl", test_parsing_yt_access_control);
g_test_add_func ("/youtube/parsing/yt:category", test_parsing_yt_category);