diff options
author | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-21 00:45:19 +0000 |
---|---|---|
committer | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-21 00:45:19 +0000 |
commit | 6db833d1d8cd28e31a3cc816c397a32d795f849e (patch) | |
tree | 832665ef8ab651c36e30db20e7f559bb392a37da /net/net.gyp | |
parent | d4362e74b269497a790eb19da357ed76fb0a2357 (diff) | |
download | chromium_src-6db833d1d8cd28e31a3cc816c397a32d795f849e.zip chromium_src-6db833d1d8cd28e31a3cc816c397a32d795f849e.tar.gz chromium_src-6db833d1d8cd28e31a3cc816c397a32d795f849e.tar.bz2 |
Factor out chunk encoding logic into HttpStreamParser::EncodeChunk().
The logic is meaty enough to be factored out.
Add unit tests along the way.
The original patch (crrev.com/118265) was reverted as it introduced
a new static initializer. This version fixed that problem by defining
the constant in the .h file. To be extra careful, replaced
kChunkBufferSize with a member variable chunk_buffer_size_.
BUG=72001
TEST=add unit tests. run tools/linux/dump-static-initializers.py locally to confirm that new static initializers are not introduced.
Review URL: http://codereview.chromium.org/9176009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118566 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/net.gyp')
-rw-r--r-- | net/net.gyp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/net.gyp b/net/net.gyp index 4a249cf..cef6185 100644 --- a/net/net.gyp +++ b/net/net.gyp @@ -1116,6 +1116,7 @@ 'http/http_response_headers_unittest.cc', 'http/http_server_properties_impl_unittest.cc', 'http/http_stream_factory_impl_unittest.cc', + 'http/http_stream_parser_unittest.cc', 'http/http_transaction_unittest.cc', 'http/http_transaction_unittest.h', 'http/http_util_unittest.cc', |