Chromium Code Reviews
DescriptionRemove GetInputStreamBufferSize() method from FilterContext.
This virtual method, implemented only by URLRequestJob and MockFilterContext,
was only used for testing purposes. The kFilterBufSize constant now lives
in filter.cc (the only place it was used), and for the few tests that needed
to override the buffer size, I've added a test-only method in filter.h.
The result is a smaller interface surface in URLRequestJob and simpler tests for most cases in gzip_filter_unittest.cc and sdch_filter_unittest.cc. I've done some further refactoring of the former to remove redundancy (most of Filter's complexity is exercised only in the SDCH test).
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=77315
Patch Set 1 #Patch Set 2 : Hopefully fix build on non-Linux #Patch Set 3 : Fixed signed/unsigned error #
Total comments: 8
Patch Set 4 : Removed #ifdef UNIT_TEST behavior, replace with friend tests #Patch Set 5 : Fixed lint #
Total comments: 2
Patch Set 6 : New approach: FactoryForTests #
Total comments: 6
Patch Set 7 : Add some sanity checks #
Messages
Total messages: 15 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||