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

Issue 3578002: Fixes the tests written for http://codereview.chromium.org/3432009/show... (Closed)

Created:
10 years, 2 months ago by Ryan Hamilton
Modified:
9 years, 7 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Fixes the tests written for http://codereview.chromium.org/3432009/show to use DeterministicSocketData which should avoid the flaky test problem that 3432009 introduced. -- Add a new class SpdyProxyClientSocket which implements ClientSocket by sending a CONNECT request via a SPDY SYN_STREAM frame to a SPDY proxy, and then reading/writing data to/from SPDY Data frames. BUG=29625 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=61144

Patch Set 1 : Base CL from 3432009 #

Patch Set 2 : Modified tests to use DeterministicSocketData #

Patch Set 3 : Base CL from 3432009 - v2 #

Patch Set 4 : Modified tests to use DeterministicSocketData - v2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1681 lines, -35 lines) Patch
M net/http/http_proxy_client_socket.cc View 2 chunks +2 lines, -31 lines 0 comments Download
A net/http/http_proxy_utils.h View 1 chunk +28 lines, -0 lines 0 comments Download
A net/http/http_proxy_utils.cc View 1 chunk +39 lines, -0 lines 0 comments Download
M net/net.gyp View 3 chunks +5 lines, -0 lines 0 comments Download
M net/spdy/spdy_framer.h View 2 chunks +6 lines, -4 lines 0 comments Download
M net/spdy/spdy_http_utils.cc View 1 chunk +2 lines, -0 lines 0 comments Download
A net/spdy/spdy_proxy_client_socket.h View 1 chunk +183 lines, -0 lines 0 comments Download
A net/spdy/spdy_proxy_client_socket.cc View 1 chunk +437 lines, -0 lines 0 comments Download
A net/spdy/spdy_proxy_client_socket_unittest.cc View 1 3 1 chunk +955 lines, -0 lines 0 comments Download
M net/spdy/spdy_session.h View 2 chunks +10 lines, -0 lines 0 comments Download
net/spdy/spdy_stream.h View 2 chunks +7 lines, -0 lines 0 comments Download
M net/spdy/spdy_stream.cc View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Ryan Hamilton
Hi Guys, I think/hope this fixes the flaky test that I committed as part of ...
10 years, 2 months ago (2010-09-29 21:04:32 UTC) #1
Ryan Hamilton
On 2010/09/29 21:04:32, Ryan Hamilton wrote: > Hi Guys, > > I think/hope this fixes ...
10 years, 2 months ago (2010-09-30 18:05:49 UTC) #2
willchan no longer on Chromium
I have say this issue made me not review it quickly. Because I have to ...
10 years, 2 months ago (2010-09-30 18:10:17 UTC) #3
Ryan Hamilton
On 2010/09/30 18:10:17, willchan wrote: > I have say this issue made me not review ...
10 years, 2 months ago (2010-09-30 19:35:12 UTC) #4
willchan no longer on Chromium
I don't quite understand the flaky test problem that you were seeing, but I'm fine ...
10 years, 2 months ago (2010-09-30 23:28:18 UTC) #5
Ryan Hamilton
10 years, 2 months ago (2010-10-01 00:34:00 UTC) #6
On 2010/09/30 23:28:18, willchan wrote:
> I don't quite understand the flaky test problem that you were seeing, but I'm
> fine with all the changes I see here anyway.  LGTM.

Great, thanks!  To be honest, I'm not sure I understand the flakiness either. 
However, I vandebo did have a reasonable complaint about the nature of tests
that depend on a read to block a write, or vice-versa.  In addition, I did have
a hard time getting OrderedSocketData to behave the way I wanted. 
OrderedSocketData has a 100ms wait which also makes me suspicious.  In any case,
I'll keep my fingers crossed :>

Powered by Google App Engine
This is Rietveld 408576698