diff options
author | Debarshi Ray <debarshir@gnome.org> | 2017-09-19 15:59:11 +0200 |
---|---|---|
committer | Debarshi Ray <debarshir@gnome.org> | 2017-09-19 18:56:42 +0200 |
commit | e941ca4a786dc89cc67e15a19cd82279bc82d0cd (patch) | |
tree | 49c7d986f62080940129b9a34a3bd00dd5b1d059 /gdata | |
parent | cd30c442b365efc2379351905957fe94b3d0a811 (diff) | |
download | libgdata-e941ca4a786dc89cc67e15a19cd82279bc82d0cd.tar.gz |
tests: Resumable uploads haven't been ported to Drive v2
https://bugzilla.gnome.org/show_bug.cgi?id=684920
Diffstat (limited to 'gdata')
-rw-r--r-- | gdata/tests/documents.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/gdata/tests/documents.c b/gdata/tests/documents.c index d43413c9..4107ca17 100644 --- a/gdata/tests/documents.c +++ b/gdata/tests/documents.c @@ -221,15 +221,16 @@ _set_up_temp_document (GDataDocumentsEntry *entry, GDataService *service, GFile /* Query for information on the file. */ file_info = g_file_query_info (document_file, - G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME "," G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE "," - G_FILE_ATTRIBUTE_STANDARD_SIZE, G_FILE_QUERY_INFO_NONE, NULL, &error); + G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME "," G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE, + G_FILE_QUERY_INFO_NONE, NULL, &error); g_assert_no_error (error); /* Prepare the upload stream */ - upload_stream = gdata_documents_service_upload_document_resumable (GDATA_DOCUMENTS_SERVICE (service), GDATA_DOCUMENTS_DOCUMENT (entry), - g_file_info_get_display_name (file_info), - g_file_info_get_content_type (file_info), g_file_info_get_size (file_info), - NULL, NULL, &error); + upload_stream = gdata_documents_service_upload_document (GDATA_DOCUMENTS_SERVICE (service), + GDATA_DOCUMENTS_DOCUMENT (entry), + g_file_info_get_display_name (file_info), + g_file_info_get_content_type (file_info), + NULL, NULL, &error); g_assert_no_error (error); g_assert (GDATA_IS_UPLOAD_STREAM (upload_stream)); @@ -2072,6 +2073,11 @@ main (int argc, char *argv[]) UploadDocumentTestParams *test_params; gchar *test_name; + /* FIXME: Resumable uploads are not implemented. */ + if (k == UPLOAD_RESUMABLE) { + continue; + } + /* Resumable metadata-only uploads don't make sense. */ if (i == UPLOAD_METADATA_ONLY && k == UPLOAD_RESUMABLE) { continue; |