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

Issue 319593013: Added unit test for DevTools' ephemeral port support. (Closed)

Created:
6 years, 6 months ago by Ken Russell (switch to Gerrit)
Modified:
6 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, vsevik, jam, yurys, paulirish+reviews_chromium.org, darin-cc_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org, pfeldman
Visibility:
Public.

Description

Added unit test for DevTools' ephemeral port support. Necessarily added support for mocking StreamListenSocket::GetLocalAddress. Also cleaned up the int-to-string conversion in DevToolsHttpHandlerImpl. BUG=382682 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276405

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed review feedback from jar. Made GetLocalAddressImpl protected. #

Total comments: 4

Patch Set 3 : Addressed review feedback from wtc. Made Get{Local,Peer}Address virtual. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -7 lines) Patch
M content/browser/devtools/devtools_http_handler_impl.cc View 1 2 3 chunks +3 lines, -5 lines 0 comments Download
M content/browser/devtools/devtools_http_handler_unittest.cc View 1 2 3 chunks +45 lines, -0 lines 0 comments Download
M net/socket/stream_listen_socket.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Ken Russell (switch to Gerrit)
pfeldman, kaznacheev: please review content/browser/devtools/ jar, wtc: please review net/socket/ Thanks.
6 years, 6 months ago (2014-06-09 21:55:26 UTC) #1
jar (doing other things)
https://codereview.chromium.org/319593013/diff/1/net/socket/stream_listen_socket.h File net/socket/stream_listen_socket.h (right): https://codereview.chromium.org/319593013/diff/1/net/socket/stream_listen_socket.h#newcode131 net/socket/stream_listen_socket.h:131: virtual int GetLocalAddressImpl(IPEndPoint* address); Should this be in the ...
6 years, 6 months ago (2014-06-09 23:13:40 UTC) #2
Ken Russell (switch to Gerrit)
Also fixed the include order in the unit test. https://codereview.chromium.org/319593013/diff/1/net/socket/stream_listen_socket.h File net/socket/stream_listen_socket.h (right): https://codereview.chromium.org/319593013/diff/1/net/socket/stream_listen_socket.h#newcode131 net/socket/stream_listen_socket.h:131: ...
6 years, 6 months ago (2014-06-09 23:32:12 UTC) #3
jar (doing other things)
net/* LGTM
6 years, 6 months ago (2014-06-10 01:01:39 UTC) #4
Ken Russell (switch to Gerrit)
+yurys
6 years, 6 months ago (2014-06-10 15:48:03 UTC) #5
wtc
Patch set 2 LGTM. I think we should just declare StreamListenSocket::GetPeerAddress as a virtual method. ...
6 years, 6 months ago (2014-06-10 17:46:44 UTC) #6
wtc
https://codereview.chromium.org/319593013/diff/20001/net/socket/stream_listen_socket.h File net/socket/stream_listen_socket.h (right): https://codereview.chromium.org/319593013/diff/20001/net/socket/stream_listen_socket.h#newcode104 net/socket/stream_listen_socket.h:104: virtual int GetLocalAddressImpl(IPEndPoint* address); Just to clarify: if you ...
6 years, 6 months ago (2014-06-10 17:48:28 UTC) #7
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/319593013/diff/20001/net/socket/stream_listen_socket.h File net/socket/stream_listen_socket.h (right): https://codereview.chromium.org/319593013/diff/20001/net/socket/stream_listen_socket.h#newcode104 net/socket/stream_listen_socket.h:104: virtual int GetLocalAddressImpl(IPEndPoint* address); On 2014/06/10 17:46:44, wtc wrote: ...
6 years, 6 months ago (2014-06-10 18:57:07 UTC) #8
wtc
Patch set 3 LGTM.
6 years, 6 months ago (2014-06-10 22:14:16 UTC) #9
yurys
lgtm
6 years, 6 months ago (2014-06-11 05:17:08 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kbr@chromium.org/319593013/40001
6 years, 6 months ago (2014-06-11 05:19:35 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 11:22:31 UTC) #12
commit-bot: I haz the power
6 years, 6 months ago (2014-06-11 15:21:58 UTC) #13
Message was sent while issue was closed.
Change committed as 276405

Powered by Google App Engine
This is Rietveld 408576698