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

Issue 12207122: SPDY - Added unit tests for use after free of SpdySession (Closed)

Created:
7 years, 10 months ago by ramant (doing other things)
Modified:
7 years, 10 months ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Ryan Sleevi
Visibility:
Public.

Description

SPDY - Added unit tests for use after free of SpdySession and unit test to test yielding + async during Read. A test that crashes when scoped_refptr to SpdySession deleted from DoLoop. Added the following test per rch to test interactions of yielding + async during Read. Do the following MockReads and verify all the data is consumed and SpdySession has yielded during Read. SYNCHRONOUS 8K SYNCHRONOUS 8K SYNCHRONOUS 8K SYNCHRONOUS 2K ASYNC 8K SYNCHRONOUS 8K SYNCHRONOUS 8K SYNCHRONOUS 8K SYNCHRONOUS 2K R=rch@chromium.org BUG=175574, 166958 TEST=net unit tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182012

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -94 lines) Patch
M net/spdy/spdy_session_spdy2_unittest.cc View 1 2 3 6 chunks +118 lines, -47 lines 0 comments Download
M net/spdy/spdy_session_spdy3_unittest.cc View 1 2 3 6 chunks +118 lines, -47 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
ramant (doing other things)
Hi rch@, Added unit tests we had discussed for SpdySession. Could you please take a ...
7 years, 10 months ago (2013-02-12 00:47:29 UTC) #1
Ryan Hamilton
Your new test looks good to me. I'm not sure I understand the motivation for ...
7 years, 10 months ago (2013-02-12 16:33:30 UTC) #2
ramant (doing other things)
On 2013/02/12 16:33:30, Ryan Hamilton wrote: > Your new test looks good to me. I'm ...
7 years, 10 months ago (2013-02-12 18:16:40 UTC) #3
Ryan Hamilton
One small suggestion. https://codereview.chromium.org/12207122/diff/7002/net/spdy/spdy_session_spdy2_unittest.cc File net/spdy/spdy_session_spdy2_unittest.cc (right): https://codereview.chromium.org/12207122/diff/7002/net/spdy/spdy_session_spdy2_unittest.cc#newcode1872 net/spdy/spdy_session_spdy2_unittest.cc:1872: CreateMockRead(*sixk_bytes_data_frame, 6, ASYNC), Can you make ...
7 years, 10 months ago (2013-02-12 18:35:39 UTC) #4
ramant (doing other things)
Made the change rch. PTAL. thanks. https://codereview.chromium.org/12207122/diff/7002/net/spdy/spdy_session_spdy2_unittest.cc File net/spdy/spdy_session_spdy2_unittest.cc (right): https://codereview.chromium.org/12207122/diff/7002/net/spdy/spdy_session_spdy2_unittest.cc#newcode1872 net/spdy/spdy_session_spdy2_unittest.cc:1872: CreateMockRead(*sixk_bytes_data_frame, 6, ASYNC), ...
7 years, 10 months ago (2013-02-12 18:44:43 UTC) #5
Ryan Hamilton
lgtm
7 years, 10 months ago (2013-02-12 18:45:25 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/12207122/8003
7 years, 10 months ago (2013-02-12 18:47:01 UTC) #7
commit-bot: I haz the power
7 years, 10 months ago (2013-02-12 21:15:53 UTC) #8
Message was sent while issue was closed.
Change committed as 182012

Powered by Google App Engine
This is Rietveld 408576698