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

Issue 10916052: Fixed UDP tests for MacOS X 10.7 (Closed)

Created:
8 years, 3 months ago by ygorshenin1
Modified:
8 years, 3 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Dmitry Polukhin
Visibility:
Public.

Description

Fixed UDP unittests for MacOS X 10.7 Fixed Connect and VerifyConnectBindsAddr unittests. As broadcast option is blocked for regular users on OSX, added check for UID to Broadcast unittest. Also, disabled browser_test:UDPSocketPrivate_Broadcast as it's compiled via NaCl toolchain, so we can't recognize current OS being inside that test. BUG=145487 TEST=net_unittests:UDPSocketTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157399

Patch Set 1 #

Patch Set 2 : Sync, fix. #

Patch Set 3 : Fix. #

Patch Set 4 : Fix #

Patch Set 5 : Disabled UDPSocketPrivate::TestBroadcast on Mac. #

Patch Set 6 : Fix. #

Total comments: 4

Patch Set 7 : Fix. #

Total comments: 6

Patch Set 8 : Added comments. #

Total comments: 2

Patch Set 9 : Fixed comments. #

Total comments: 5

Patch Set 10 : UDPSocketTest.Broadcast is fully disabled on OSX #

Patch Set 11 : Sync. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -6 lines) Patch
M chrome/test/ppapi/ppapi_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +21 lines, -3 lines 0 comments Download
M net/udp/udp_socket_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +12 lines, -3 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
ygorshenin1
8 years, 3 months ago (2012-09-03 17:59:28 UTC) #1
mmenke
I'm not sufficiently familiar with UDP to review this, and the fact that you're adding ...
8 years, 3 months ago (2012-09-04 14:59:39 UTC) #2
ygorshenin1
+ Sergey
8 years, 3 months ago (2012-09-04 15:27:14 UTC) #3
Sergey Ulanov
The description of this CL is confusing. The problem is not that setsockopt() requires root ...
8 years, 3 months ago (2012-09-04 21:27:32 UTC) #4
ygorshenin1
PTAL http://codereview.chromium.org/10916052/diff/13006/net/udp/udp_socket_unittest.cc File net/udp/udp_socket_unittest.cc (right): http://codereview.chromium.org/10916052/diff/13006/net/udp/udp_socket_unittest.cc#newcode207 net/udp/udp_socket_unittest.cc:207: // TODO (ygorshenin): crbug.com/145487 On 2012/09/04 21:27:32, sergeyu ...
8 years, 3 months ago (2012-09-05 13:25:44 UTC) #5
Sergey Ulanov
couple more style nits. LGTM otherwise. http://codereview.chromium.org/10916052/diff/4010/chrome/test/ppapi/ppapi_browsertest.cc File chrome/test/ppapi/ppapi_browsertest.cc (right): http://codereview.chromium.org/10916052/diff/4010/chrome/test/ppapi/ppapi_browsertest.cc#newcode293 chrome/test/ppapi/ppapi_browsertest.cc:293: #if !defined(OS_MACOSX) Please ...
8 years, 3 months ago (2012-09-05 22:23:56 UTC) #6
ygorshenin1
Thanks, Sergey! + Trung for chrome/test/ppapi* Matt, could you please give an OWNER's LGTM for ...
8 years, 3 months ago (2012-09-06 08:01:25 UTC) #7
mmenke
net/ LGTM http://codereview.chromium.org/10916052/diff/5004/net/udp/udp_socket_unittest.cc File net/udp/udp_socket_unittest.cc (right): http://codereview.chromium.org/10916052/diff/5004/net/udp/udp_socket_unittest.cc#newcode213 net/udp/udp_socket_unittest.cc:213: "Skipping Broadcast test because it requires root ...
8 years, 3 months ago (2012-09-06 14:29:07 UTC) #8
ygorshenin1
Thanks, PTAL. http://codereview.chromium.org/10916052/diff/5004/net/udp/udp_socket_unittest.cc File net/udp/udp_socket_unittest.cc (right): http://codereview.chromium.org/10916052/diff/5004/net/udp/udp_socket_unittest.cc#newcode213 net/udp/udp_socket_unittest.cc:213: "Skipping Broadcast test because it requires root ...
8 years, 3 months ago (2012-09-06 17:29:33 UTC) #9
mmenke
LGTM
8 years, 3 months ago (2012-09-06 17:31:43 UTC) #10
ygorshenin1
Trung, could you please give an OWNER's LGTM for chrome/test/ppapi?
8 years, 3 months ago (2012-09-08 06:50:27 UTC) #11
viettrungluu
http://codereview.chromium.org/10916052/diff/16003/chrome/test/ppapi/ppapi_browsertest.cc File chrome/test/ppapi/ppapi_browsertest.cc (right): http://codereview.chromium.org/10916052/diff/16003/chrome/test/ppapi/ppapi_browsertest.cc#newcode291 chrome/test/ppapi/ppapi_browsertest.cc:291: // UDPSocketPrivate_Broadcast is disabled for OSX because it requires ...
8 years, 3 months ago (2012-09-10 17:51:09 UTC) #12
mmenke
http://codereview.chromium.org/10916052/diff/16003/net/udp/udp_socket_unittest.cc File net/udp/udp_socket_unittest.cc (right): http://codereview.chromium.org/10916052/diff/16003/net/udp/udp_socket_unittest.cc#newcode210 net/udp/udp_socket_unittest.cc:210: #if defined(OS_MACOSX) On 2012/09/10 17:51:10, viettrungluu wrote: > Do ...
8 years, 3 months ago (2012-09-10 17:53:29 UTC) #13
ygorshenin1
PTAL http://codereview.chromium.org/10916052/diff/16003/chrome/test/ppapi/ppapi_browsertest.cc File chrome/test/ppapi/ppapi_browsertest.cc (right): http://codereview.chromium.org/10916052/diff/16003/chrome/test/ppapi/ppapi_browsertest.cc#newcode291 chrome/test/ppapi/ppapi_browsertest.cc:291: // UDPSocketPrivate_Broadcast is disabled for OSX because it ...
8 years, 3 months ago (2012-09-10 18:05:22 UTC) #14
ygorshenin1
PTAL http://codereview.chromium.org/10916052/diff/16003/net/udp/udp_socket_unittest.cc File net/udp/udp_socket_unittest.cc (right): http://codereview.chromium.org/10916052/diff/16003/net/udp/udp_socket_unittest.cc#newcode210 net/udp/udp_socket_unittest.cc:210: #if defined(OS_MACOSX) On 2012/09/10 17:53:29, Matt Menke wrote: ...
8 years, 3 months ago (2012-09-10 18:07:04 UTC) #15
viettrungluu
On 2012/09/10 18:05:22, ygorshenin1 wrote: > PTAL > > http://codereview.chromium.org/10916052/diff/16003/chrome/test/ppapi/ppapi_browsertest.cc > File chrome/test/ppapi/ppapi_browsertest.cc (right): > ...
8 years, 3 months ago (2012-09-11 17:18:43 UTC) #16
ygorshenin1
Broadcasting is supported from a NaCl plugin. It can be tested on OSX 10.6, but ...
8 years, 3 months ago (2012-09-12 11:30:55 UTC) #17
ygorshenin1
Trung, friendly ping. On 2012/09/12 11:30:55, ygorshenin1 wrote: > Broadcasting is supported from a NaCl ...
8 years, 3 months ago (2012-09-18 11:26:50 UTC) #18
viettrungluu
On 2012/09/18 11:26:50, ygorshenin1 wrote: > Trung, friendly ping. > > On 2012/09/12 11:30:55, ygorshenin1 ...
8 years, 3 months ago (2012-09-18 15:36:28 UTC) #19
ygorshenin1
Broadcasting *works* on Mac. But it requires admin privileges. So if mac user will run ...
8 years, 3 months ago (2012-09-18 17:00:04 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ygorshenin@chromium.org/10916052/5007
8 years, 3 months ago (2012-09-18 17:08:03 UTC) #21
commit-bot: I haz the power
Failed to apply patch for net/udp/udp_socket_unittest.cc: While running patch -p1 --forward --force; patching file net/udp/udp_socket_unittest.cc ...
8 years, 3 months ago (2012-09-18 17:08:13 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ygorshenin@chromium.org/10916052/19002
8 years, 3 months ago (2012-09-18 17:12:27 UTC) #23
commit-bot: I haz the power
Change committed as 157399
8 years, 3 months ago (2012-09-18 19:13:05 UTC) #24
jschuh
On 2012/09/18 17:00:04, ygorshenin1 wrote: > Broadcasting *works* on Mac. But it requires admin privileges. ...
8 years, 3 months ago (2012-09-19 20:42:21 UTC) #25
mmenke
8 years, 3 months ago (2012-09-19 20:47:25 UTC) #26
On 2012/09/19 20:42:21, Justin Schuh wrote:
> On 2012/09/18 17:00:04, ygorshenin1 wrote:
> > Broadcasting *works* on Mac. But it requires admin privileges. So if mac
user
> > will run nacl plugin which sends some broadcasting messages, the system will
> > prompt for root password.
> 
> Chrome has never allowed content to trigger a system elevation prompt, even at
> install. Ignoring the severe security implications allowing that, it's also a
UX
> mess. I'm sorry if that means this can't be supported on Mac 10.7+, but I
don't
> see any other alternative.

I agree with this.  Unless there's a strong reason to keep it on other
platforms, it's probably best to disable NaCl UDP broadcast all together, though
not my area of expertise.

Powered by Google App Engine
This is Rietveld 408576698