Commit bc6f8ffc authored by satorux@chromium.org's avatar satorux@chromium.org

google_apis: Add a test for uploading a large file

An upload of a large file requires multiple requests of ResumeUploadOperation
which should be tested.

BUG=162348
TEST=none

Review URL: https://codereview.chromium.org/11308315

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170707 0039d316-1c4b-4281-b951-d872f2087c98
parent ad5f9633
...@@ -445,6 +445,9 @@ struct ResumeUploadResponse { ...@@ -445,6 +445,9 @@ struct ResumeUploadResponse {
~ResumeUploadResponse(); ~ResumeUploadResponse();
GDataErrorCode code; GDataErrorCode code;
// The values of "Range" header returned from the server. The values are
// used to continue uploading more data. These are set to -1 if an upload
// is complete.
int64 start_range_received; int64 start_range_received;
int64 end_range_received; // inclusive. See below. int64 end_range_received; // inclusive. See below.
}; };
......
...@@ -15,7 +15,9 @@ namespace test_server { ...@@ -15,7 +15,9 @@ namespace test_server {
enum ResponseCode { enum ResponseCode {
SUCCESS = 200, SUCCESS = 200,
CREATED = 201,
MOVED = 301, MOVED = 301,
RESUME_INCOMPLETE = 308,
NOT_FOUND = 404, NOT_FOUND = 404,
ACCESS_DENIED = 500, ACCESS_DENIED = 500,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment