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

Issue 5519015: Explicitly whitelist the test server port. (Closed)

Created:
10 years ago by Bernhard Bauer
Modified:
9 years, 7 months ago
Reviewers:
cbentzel, akalin
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, battre, Paweł Hajdan Jr., ncarter (slow), idana, Raghu Simha, tim (not reviewing), ben+cc_chromium.org, brettw-cc_chromium.org, jam, stuartmorgan, arv (Not doing code reviews), pam+watch_chromium.org, stuartmorgan+watch_chromium.org
Visibility:
Public.

Description

Explicitly whitelist the test server port. BUG=65859 TEST=yes please Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=68853

Patch Set 1 #

Total comments: 2

Patch Set 2 : add helper class for whitelisting. #

Total comments: 2

Patch Set 3 : review #

Total comments: 4

Patch Set 4 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -9 lines) Patch
M chrome/test/live_sync/live_sync_test.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/live_sync/live_sync_test.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M net/base/net_util.h View 1 2 2 chunks +12 lines, -1 line 0 comments Download
M net/base/net_util.cc View 1 2 3 4 chunks +15 lines, -8 lines 0 comments Download
M net/test/test_server.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M net/test/test_server.cc View 1 2 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Bernhard Bauer
Please review.
10 years ago (2010-12-08 12:00:47 UTC) #1
akalin
On 2010/12/08 12:00:47, Bernhard Bauer wrote: > Please review. If the test server is started ...
10 years ago (2010-12-08 15:02:13 UTC) #2
akalin
http://codereview.chromium.org/5519015/diff/1/net/test/test_server.cc File net/test/test_server.cc (right): http://codereview.chromium.org/5519015/diff/1/net/test/test_server.cc#newcode161 net/test/test_server.cc:161: Add a TODO(akalin) to add code to store all ...
10 years ago (2010-12-08 15:02:34 UTC) #3
cbentzel
driveby: Should you remove in the TestServer destructor as well as Stop? Also - this ...
10 years ago (2010-12-08 15:05:27 UTC) #4
Bernhard Bauer
On 2010/12/08 15:05:27, cbentzel wrote: > driveby: > > Should you remove in the TestServer ...
10 years ago (2010-12-09 10:48:08 UTC) #5
cbentzel
LGTM Thanks for fixing this! http://codereview.chromium.org/5519015/diff/7001/net/base/net_util.h File net/base/net_util.h (right): http://codereview.chromium.org/5519015/diff/7001/net/base/net_util.h#newcode341 net/base/net_util.h:341: class ScopedPortException { DISALLOW_COPY_AND_ASSIGN ...
10 years ago (2010-12-09 14:25:12 UTC) #6
cbentzel
Oh - and please fix the live_sync_test.cc compile issues before landing.
10 years ago (2010-12-09 14:26:39 UTC) #7
Bernhard Bauer
All done. Running tryjobs now. On Thu, Dec 9, 2010 at 15:26, <cbentzel@chromium.org> wrote: > ...
10 years ago (2010-12-09 14:38:41 UTC) #8
akalin
LGTM http://codereview.chromium.org/5519015/diff/18001/chrome/test/live_sync/live_sync_test.h File chrome/test/live_sync/live_sync_test.h (right): http://codereview.chromium.org/5519015/diff/18001/chrome/test/live_sync/live_sync_test.h#newcode177 chrome/test/live_sync/live_sync_test.h:177: // Helper class to whitelist the notificition port. ...
10 years ago (2010-12-09 19:10:31 UTC) #9
Bernhard Bauer
http://codereview.chromium.org/5519015/diff/18001/chrome/test/live_sync/live_sync_test.h File chrome/test/live_sync/live_sync_test.h (right): http://codereview.chromium.org/5519015/diff/18001/chrome/test/live_sync/live_sync_test.h#newcode177 chrome/test/live_sync/live_sync_test.h:177: // Helper class to whitelist the notificition port. On ...
10 years ago (2010-12-10 14:47:04 UTC) #10
akalin
10 years ago (2010-12-10 19:19:17 UTC) #11
LGTM

On 2010/12/10 14:47:04, Bernhard Bauer wrote:
>
http://codereview.chromium.org/5519015/diff/18001/chrome/test/live_sync/live_...
> File chrome/test/live_sync/live_sync_test.h (right):
> 
>
http://codereview.chromium.org/5519015/diff/18001/chrome/test/live_sync/live_...
> chrome/test/live_sync/live_sync_test.h:177: // Helper class to whitelist the
> notificition port.
> On 2010/12/09 19:10:31, akalin wrote:
> > notificition -> notification
> 
> Done.
> 
> http://codereview.chromium.org/5519015/diff/18001/net/base/net_util.cc
> File net/base/net_util.cc (right):
> 
>
http://codereview.chromium.org/5519015/diff/18001/net/base/net_util.cc#newcod...
> net/base/net_util.cc:1757: explicitly_allowed_ports.erase(it);
> On 2010/12/09 19:10:31, akalin wrote:
> > suggest LOG(DFATAL) if it == end()
> 
> I used NOTREACHED() if that's okay. We don't really get anything from logging
in
> release mode.

Powered by Google App Engine
This is Rietveld 408576698