|
|
Move ~1000 SpdySerializedFrame instances from heap to stack in tests.
* Return SpdySerializedFrame instead of SpdySerializedFrame* in SpdyTestUtil.
* Move ~1000 SpdySerializedFrame local variables from heap to stack in tests,
thus eliminating ~1000 unnecessary memory allocations.
* Remove unused SpdyTestUtil::ConstructSpdyFrame() methods.
* s/SpdyTestUtil::ConstructSpdyBodyFrame/SpdyTestUtil::ConstructSpdyDataFrame/
(Body is an application layer concept; data is a framing layer concept.)
* Use SpdyTestUtil::ConstructSpdyDataFrame() instead of
BufferedSpdyFramer::CreateDataFrame() in tests;
remove unused BufferedSpdyFramer instances.
* Remove one unused unique_ptr<SpdySerializedFrame> instance from
BidirectionalStreamTest.CancelStreamDuringReadData.
This change only affects tests, there is no functional change intended, and
there is no move semantics involved.
BUG= 600438
Committed: https://crrev.com/df80d44fd869b5a27871be4c5c1e0fdfd184d584
Cr-Commit-Position: refs/heads/master@{#405845}
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+2370 lines, -3059 lines) |
Patch |
 |
M |
net/http/bidirectional_stream_unittest.cc
|
View
|
|
15 chunks |
+141 lines, -172 lines |
0 comments
|
Download
|
 |
M |
net/http/http_network_transaction_unittest.cc
|
View
|
|
44 chunks |
+321 lines, -383 lines |
0 comments
|
Download
|
 |
M |
net/http/http_proxy_client_socket_pool_unittest.cc
|
View
|
|
7 chunks |
+28 lines, -47 lines |
0 comments
|
Download
|
 |
M |
net/spdy/bidirectional_stream_spdy_impl_unittest.cc
|
View
|
|
2 chunks |
+16 lines, -18 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_http_stream_unittest.cc
|
View
|
|
24 chunks |
+112 lines, -164 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_network_transaction_unittest.cc
|
View
|
|
108 chunks |
+893 lines, -1188 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_proxy_client_socket_unittest.cc
|
View
|
|
40 chunks |
+215 lines, -222 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_session_pool_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_session_unittest.cc
|
View
|
|
61 chunks |
+391 lines, -533 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_stream_unittest.cc
|
View
|
|
14 chunks |
+114 lines, -127 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_test_util_common.h
|
View
|
|
4 chunks |
+76 lines, -92 lines |
0 comments
|
Download
|
 |
M |
net/spdy/spdy_test_util_common.cc
|
View
|
|
15 chunks |
+61 lines, -111 lines |
0 comments
|
Download
|
Total messages: 12 (7 generated)
|