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

Issue 3195015: Add option to simulate alternate protocol always being present.... (Closed)

Created:
10 years, 4 months ago by Mike Belshe
Modified:
9 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add option to simulate alternate protocol always being present. It's a bit hardcoded (port 443, NPN/SPDY2), but it is just for testing purposes. To use this mode, run chrome with: chrome.exe --use-spdy=npn,force-alt-protocols BUG=none TEST=http_alternate_protocols_unittest.cc Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57022

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -3 lines) Patch
M net/http/http_alternate_protocols.h View 1 chunk +10 lines, -0 lines 0 comments Download
M net/http/http_alternate_protocols.cc View 3 chunks +29 lines, -3 lines 1 comment Download
M net/http/http_alternate_protocols_unittest.cc View 1 chunk +37 lines, -0 lines 0 comments Download
M net/http/http_network_layer.cc View 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Mike Belshe
10 years, 4 months ago (2010-08-22 09:15:26 UTC) #1
willchan no longer on Chromium
lgtm http://codereview.chromium.org/3195015/diff/1/2 File net/http/http_alternate_protocols.cc (right): http://codereview.chromium.org/3195015/diff/1/2#newcode102 net/http/http_alternate_protocols.cc:102: // Note: we're going to leak this. Call ...
10 years, 4 months ago (2010-08-22 16:27:33 UTC) #2
Mike Belshe
10 years, 4 months ago (2010-08-22 20:57:34 UTC) #3
Thanks for the super fast turnaround on the review!

On 2010/08/22 16:27:33, willchan wrote:
> lgtm
> 
> http://codereview.chromium.org/3195015/diff/1/2
> File net/http/http_alternate_protocols.cc (right):
> 
> http://codereview.chromium.org/3195015/diff/1/2#newcode102
> net/http/http_alternate_protocols.cc:102: // Note: we're going to leak this.
> Call delete forced_alternate_protocol_ here, in case this is called twice.  

Done.

> A
> super anal person might add another call to ForceAlternateProtocol() in your
> test to cover this case and show that calling it multiple times works, but
that
> might be overkill.

Not anal enough.

Powered by Google App Engine
This is Rietveld 408576698