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

Issue 267042: Add an interface to report the amount of data after a chunked encoding.... (Closed)

Created:
11 years, 2 months ago by vandebo (ex-Chrome)
Modified:
9 years, 7 months ago
Reviewers:
eroman, wtc
CC:
chromium-reviews_googlegroups.com, darin (slow to review), tim (not reviewing), Paweł Hajdan Jr.
Visibility:
Public.

Description

Add an interface to report the amount of data after a chunked encoding. This will be needed for pipelining. Separated out of http://codereview.chromium.org/249031. BUG=13289 TEST=existing and added unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=28833

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -13 lines) Patch
M net/http/http_chunked_decoder.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M net/http/http_chunked_decoder.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M net/http/http_chunked_decoder_unittest.cc View 1 11 chunks +46 lines, -12 lines 1 comment Download

Messages

Total messages: 4 (0 generated)
vandebo (ex-Chrome)
11 years, 2 months ago (2009-10-09 22:20:27 UTC) #1
wtc
LGTM. http://codereview.chromium.org/267042/diff/1/2 File net/http/http_chunked_decoder.h (right): http://codereview.chromium.org/267042/diff/1/2#newcode80 Line 80: int bytes_after_eof() const { return reached_eof_ ? ...
11 years, 2 months ago (2009-10-09 22:47:36 UTC) #2
vandebo (ex-Chrome)
Will commit this when tree opens... http://codereview.chromium.org/267042/diff/1/2 File net/http/http_chunked_decoder.h (right): http://codereview.chromium.org/267042/diff/1/2#newcode80 Line 80: int bytes_after_eof() ...
11 years, 2 months ago (2009-10-12 16:37:32 UTC) #3
wtc
11 years, 2 months ago (2009-10-12 18:48:19 UTC) #4
LGTM.

http://codereview.chromium.org/267042/diff/4001/4003
File net/http/http_chunked_decoder_unittest.cc (right):

http://codereview.chromium.org/267042/diff/4001/4003#newcode31
Line 31: EXPECT_EQ(result, expected_output);
Another nit: in these EXPECT_XX macros, the expected value
should be listed first.  This only matters in the printout
when the EXPECT_EQ macros fail.  You will get a more meaningful
printout if you list the parameters in the right order
(expected, actual).

Powered by Google App Engine
This is Rietveld 408576698