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

Issue 2156643002: Move ~1000 SpdySerializedFrame instances from heap to stack in tests. (Closed)

Created:
4 years, 5 months ago by Bence
Modified:
4 years, 5 months ago
Reviewers:
xunjieli
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

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}

Patch Set 1 #

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

Messages

Total messages: 12 (7 generated)
Bence
Helen: PTAL. Thank you.
4 years, 5 months ago (2016-07-15 19:58:06 UTC) #6
xunjieli
The code is so much cleaner! + 1 to the change. lgtm
4 years, 5 months ago (2016-07-15 20:13:40 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2156643002/1
4 years, 5 months ago (2016-07-15 20:22:46 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-07-15 20:27:58 UTC) #10
commit-bot: I haz the power
4 years, 5 months ago (2016-07-15 20:29:51 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/df80d44fd869b5a27871be4c5c1e0fdfd184d584
Cr-Commit-Position: refs/heads/master@{#405845}

Powered by Google App Engine
This is Rietveld 408576698