[libgdata] tests: Resumable uploads haven't been ported to Drive v2
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgdata] tests: Resumable uploads haven't been ported to Drive v2
- Date: Tue, 19 Sep 2017 17:07:13 +0000 (UTC)
commit e941ca4a786dc89cc67e15a19cd82279bc82d0cd
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Sep 19 15:59:11 2017 +0200
tests: Resumable uploads haven't been ported to Drive v2
https://bugzilla.gnome.org/show_bug.cgi?id=684920
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 d43413c..4107ca1 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]