From b63fc7063d6b62c9f4f7ba745c94060546bb06c8 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 10 Jul 2015 12:49:35 +0100 Subject: tests: Mark some unused functions as unused After porting all of the YouTube tests, the Contacts and PicasaWeb tests need a bit more love to get them working. Because time is short, just mark these ones as __attribute__((unused)), or comment them out, and I will come back to them later. FIXMEs added. https://bugzilla.gnome.org/show_bug.cgi?id=750914 --- gdata/tests/contacts.c | 4 ++++ gdata/tests/picasaweb.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/gdata/tests/contacts.c b/gdata/tests/contacts.c index 2f8ae8ec..41359420 100644 --- a/gdata/tests/contacts.c +++ b/gdata/tests/contacts.c @@ -2172,6 +2172,10 @@ test_photo_delete (TempContactData *data, gconstpointer service) uhm_server_end_trace (mock_server); } +static void +test_photo_delete_async_cancellation (GDataAsyncTestData *data, + gconstpointer service) __attribute__((unused)); + GDATA_ASYNC_TEST_FUNCTIONS (photo_delete, TempContactData, G_STMT_START { g_assert (gdata_contacts_contact_get_photo_etag (data->contact) != NULL); diff --git a/gdata/tests/picasaweb.c b/gdata/tests/picasaweb.c index 24d04018..6a9f71e5 100644 --- a/gdata/tests/picasaweb.c +++ b/gdata/tests/picasaweb.c @@ -1704,6 +1704,8 @@ test_upload_default_album (UploadData *data, gconstpointer service) uhm_server_end_trace (mock_server); } +#if 0 +FIXME: Port to v3 API and re-enable. GDATA_ASYNC_CLOSURE_FUNCTIONS (upload, UploadData); GDATA_ASYNC_TEST_FUNCTIONS (upload_default_album, UploadData, @@ -1767,6 +1769,7 @@ G_STMT_START { g_clear_error (&upload_error); } G_STMT_END); +#endif static void test_album_new (void) -- cgit v1.2.1