Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Issue 921453003: Allow URLRequest::AppendChunkToUpload to take 0-byte final chunks. (Closed)

Created:
5 years, 10 months ago by mmenke
Modified:
5 years, 10 months ago
Reviewers:
mef
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow URLRequest::AppendChunkToUpload to take 0-byte final chunks. Also add HttpStreamParser unit tests for 0 byte final chunks. BUG=405678 Committed: https://crrev.com/3dc8c88b77aadf129ce466f67d05d0f950c904a2 Cr-Commit-Position: refs/heads/master@{#317051}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Add a bunch of tests #

Patch Set 3 : Update comments #

Patch Set 4 : Reduce tests, refactor out some of the boilerplate, merge some lines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+360 lines, -51 lines) Patch
M net/http/http_stream_parser_unittest.cc View 1 2 3 8 chunks +354 lines, -48 lines 0 comments Download
M net/url_request/url_request.h View 1 2 1 chunk +6 lines, -2 lines 0 comments Download
M net/url_request/url_request.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 15 (3 generated)
mmenke
Finally got back to this. So little work after...erm...6 months on the back burner. I'd ...
5 years, 10 months ago (2015-02-11 19:42:04 UTC) #2
mmenke
https://codereview.chromium.org/921453003/diff/1/net/url_request/url_request.cc File net/url_request/url_request.cc (right): https://codereview.chromium.org/921453003/diff/1/net/url_request/url_request.cc#newcode212 net/url_request/url_request.cc:212: DCHECK(upload_data_stream_->is_chunked()); And one quick note...ChunkedUploadDataStream already has a bytes ...
5 years, 10 months ago (2015-02-11 19:43:56 UTC) #3
mef
https://codereview.chromium.org/921453003/diff/1/net/http/http_stream_parser_unittest.cc File net/http/http_stream_parser_unittest.cc (right): https://codereview.chromium.org/921453003/diff/1/net/http/http_stream_parser_unittest.cc#newcode376 net/http/http_stream_parser_unittest.cc:376: request_info.upload_data_stream = &upload_stream; is it possible to set upload_data_stream ...
5 years, 10 months ago (2015-02-11 21:32:10 UTC) #5
mmenke
https://codereview.chromium.org/921453003/diff/1/net/http/http_stream_parser_unittest.cc File net/http/http_stream_parser_unittest.cc (right): https://codereview.chromium.org/921453003/diff/1/net/http/http_stream_parser_unittest.cc#newcode376 net/http/http_stream_parser_unittest.cc:376: request_info.upload_data_stream = &upload_stream; On 2015/02/11 21:32:10, mef wrote: > ...
5 years, 10 months ago (2015-02-11 22:37:22 UTC) #6
mmenke
I don't feel like I gave you a very good idea of context when you ...
5 years, 10 months ago (2015-02-11 23:55:03 UTC) #7
mef
Thanks for the explanation! I still need to carefully understand test framework and scenarios.
5 years, 10 months ago (2015-02-12 22:07:40 UTC) #8
mmenke
On 2015/02/12 22:07:40, mef wrote: > Thanks for the explanation! I still need to carefully ...
5 years, 10 months ago (2015-02-12 22:11:13 UTC) #9
mef
lgtm
5 years, 10 months ago (2015-02-19 14:30:38 UTC) #10
mmenke
On 2015/02/19 14:30:38, mef wrote: > lgtm Thanks! Was going to ping you after simplifying ...
5 years, 10 months ago (2015-02-19 15:08:44 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/921453003/80001
5 years, 10 months ago (2015-02-19 15:09:01 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:80001)
5 years, 10 months ago (2015-02-19 15:11:38 UTC) #14
commit-bot: I haz the power
5 years, 10 months ago (2015-02-19 15:12:10 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3dc8c88b77aadf129ce466f67d05d0f950c904a2
Cr-Commit-Position: refs/heads/master@{#317051}

Powered by Google App Engine
This is Rietveld 408576698