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

Issue 164114: Rebaseline block-test* tests for Mac.... (Closed)

Created:
11 years, 4 months ago by darin (slow to review)
Modified:
9 years, 7 months ago
Reviewers:
wtc
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Rebaseline block-test* tests for Mac. On Mac, when trying to connect to 255.255.255.255, we get an EACCES error. I don't think it is correct for me to map that to ERR_ADDRESS_INVALID or ERR_ADDRESS_UNREACHABLE, so I'm going to map it to ERR_ACCESS_DENIED. This means that I need to rebaseline the chromium-mac results for these tests. I think it is okay to have platform specific behavior here. I kind of prefer that the error codes we show are more closely in sync with the operating system. That way it may be easier for a sophisticated user to make sense of our error codes. R=wtc BUG=18665 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=23176

Patch Set 1 #

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -3 lines) Patch
M net/socket/tcp_client_socket_libevent.cc View 1 chunk +2 lines, -0 lines 0 comments Download
A webkit/data/layout_tests/platform/chromium-mac/LayoutTests/security/block-test-expected.txt View 1 1 chunk +128 lines, -0 lines 0 comments Download
A webkit/data/layout_tests/platform/chromium-mac/LayoutTests/security/block-test-no-port-expected.txt View 1 1 chunk +6 lines, -0 lines 0 comments Download
M webkit/tools/layout_tests/test_expectations.txt View 1 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
darin (slow to review)
11 years, 4 months ago (2009-08-07 00:06:41 UTC) #1
wtc
LGTM, but let's map EACCES to ERR_ACCESS_DENIED. ERR_FAILED is bad. Here is the connect(2) man ...
11 years, 4 months ago (2009-08-07 02:13:20 UTC) #2
Peter Kasting
On Thu, Aug 6, 2009 at 7:13 PM, <wtc@chromium.org> wrote: > Is 255.255.255.255 a broadcast ...
11 years, 4 months ago (2009-08-07 02:16:25 UTC) #3
wtc
Another option: In http://codereview.chromium.org/159904, we're adding our first context-specific error mapping function, MapConnectError. So you ...
11 years, 4 months ago (2009-08-07 02:25:25 UTC) #4
wtc
I forgot to say -- map EACCES to ERR_ACCESS_DENIED in MapPosixError, and optionally (if you ...
11 years, 4 months ago (2009-08-07 02:28:10 UTC) #5
darin (slow to review)
This sounds like a good solution to me. I like making the error reporting to ...
11 years, 4 months ago (2009-08-07 06:03:50 UTC) #6
darin (slow to review)
I decided to just go with mapping EACCES to ERR_ACCESS_DENIED. I think it is better ...
11 years, 4 months ago (2009-08-11 23:35:40 UTC) #7
wtc
11 years, 4 months ago (2009-08-12 00:08:14 UTC) #8
LGTM.

Powered by Google App Engine
This is Rietveld 408576698