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

Issue 9369029: Add '--host' option to testserver.py and expose it via a new TestServer constructor. (Closed)

Created:
8 years, 10 months ago by erikwright (departed)
Modified:
8 years, 10 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add '--host' option to testserver.py and expose it via a new TestServer constructor. By default the value 127.0.0.1 is used (this is also the default if no option is passed to the testserver.py script). For HTTPS cert mismatch tests, the value localhost is used. This causes the server to listen on localhost/127.0.0.1 but causes the client to expect a cert matching localhost (this corresponds to the previous behaviour). BUG=114369 TEST=net_unittests still pass Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=123040

Patch Set 1 #

Total comments: 2

Patch Set 2 : Combine with testserver.py CL. #

Patch Set 3 : Integrate the definition of kLocalhost to facilitate follow-up CLs. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -22 lines) Patch
M net/test/test_server.h View 1 2 2 chunks +10 lines, -1 line 1 comment Download
M net/test/test_server.cc View 1 2 4 chunks +16 lines, -4 lines 0 comments Download
M net/tools/testserver/testserver.py View 1 12 chunks +50 lines, -17 lines 1 comment Download

Messages

Total messages: 16 (0 generated)
erikwright (departed)
Depends on this change to testserver.py: http://codereview.chromium.org/9368030/ See also this change to expose a static ...
8 years, 10 months ago (2012-02-15 15:48:51 UTC) #1
erikwright (departed)
8 years, 10 months ago (2012-02-15 17:08:01 UTC) #2
Paweł Hajdan Jr.
Why is this separate from http://codereview.chromium.org/9368030/ ? Please put both changes in the same CL, ...
8 years, 10 months ago (2012-02-15 17:13:09 UTC) #3
akalin
leaving this review to pawel, too
8 years, 10 months ago (2012-02-15 23:20:04 UTC) #4
erikwright (departed)
I will combine the CLs, according to your preference. http://codereview.chromium.org/9369029/diff/1/net/test/test_server.h File net/test/test_server.h (right): http://codereview.chromium.org/9369029/diff/1/net/test/test_server.h#newcode116 net/test/test_server.h:116: ...
8 years, 10 months ago (2012-02-16 14:31:00 UTC) #5
erikwright (departed)
I have combined the CLs here. PTAL.
8 years, 10 months ago (2012-02-16 15:01:05 UTC) #6
Paweł Hajdan Jr.
On 2012/02/16 14:31:00, erikwright wrote: > This would touch something on the order of 64 ...
8 years, 10 months ago (2012-02-16 15:43:48 UTC) #7
erikwright (departed)
Hi Pawel, I have uploaded two follow-up CLs that update clients and then remove the ...
8 years, 10 months ago (2012-02-21 20:30:04 UTC) #8
Paweł Hajdan Jr.
Looks like this CL did not receive any of the fixes I asked for. Feel ...
8 years, 10 months ago (2012-02-22 08:21:14 UTC) #9
erikwright (departed)
On 2012/02/22 08:21:14, Paweł Hajdan Jr. wrote: > Looks like this CL did not receive ...
8 years, 10 months ago (2012-02-22 11:31:59 UTC) #10
Paweł Hajdan Jr.
LGTM
8 years, 10 months ago (2012-02-22 14:41:26 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/9369029/6001
8 years, 10 months ago (2012-02-22 14:58:59 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikwright@chromium.org/9369029/15001
8 years, 10 months ago (2012-02-22 15:20:23 UTC) #13
commit-bot: I haz the power
Change committed as 123040
8 years, 10 months ago (2012-02-22 16:41:13 UTC) #14
eroman
http://codereview.chromium.org/9369029/diff/15001/net/tools/testserver/testserver.py File net/tools/testserver/testserver.py (right): http://codereview.chromium.org/9369029/diff/15001/net/tools/testserver/testserver.py#newcode1919 net/tools/testserver/testserver.py:1919: print 'HTTPS server started on %s:%d...' % (host, server.server_port) ...
8 years, 10 months ago (2012-02-23 20:51:44 UTC) #15
eroman
8 years, 10 months ago (2012-02-23 20:55:07 UTC) #16
http://codereview.chromium.org/9369029/diff/15001/net/test/test_server.h
File net/test/test_server.h (right):

http://codereview.chromium.org/9369029/diff/15001/net/test/test_server.h#newc...
net/test/test_server.h:114: static const char* kLocalhost;
Technically this is ambiguous, since "localhost" might also mean ::1

No change required, just saying.

Powered by Google App Engine
This is Rietveld 408576698