DescriptionFix a pair of Cronet upload bugs and add tests.
When it retried uploads using Channels, it would restart the upload with
data from the middle of the file, since Channels can't be rewound. It
now just fails those requests instead.
Also, it was impossible to set the method for uploads - the default
value (POST) would overwrite any method set by the embedder.
Adds a new set of upload tests using the embedded test server, as
uploads were basically untested before. Chunked uploads are still not
being tested, as the test server doesn't support them yet.
BUG=424712
Committed: https://crrev.com/96a960536bdd4d6c6ceec62498a577f1c367ab73
Cr-Commit-Position: refs/heads/master@{#300316}
Patch Set 1 #Patch Set 2 : merge #Patch Set 3 : Placate git #
Total comments: 16
Patch Set 4 : Add test, fix merge #
Total comments: 2
Patch Set 5 : Response to comments #
Total comments: 2
Patch Set 6 : Response to comments #Patch Set 7 : Reorder fields #Messages
Total messages: 15 (3 generated)
|