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

Issue 468023: Add an implementation of base::SyncSocket::Peek for posix platforms. (Closed)

Created:
11 years ago by sehr (please use chromium)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, pam+watch_chromium.org, brettw+cc_chromium.org
Visibility:
Public.

Description

Add an implementation of base::SyncSocket::Peek for posix platforms. Also update the unit test to test the result. TEST=ipc_tests/sync_socket_unittest.cc Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=33944

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -5 lines) Patch
M base/sync_socket_posix.cc View 2 chunks +7 lines, -3 lines 0 comments Download
M ipc/sync_socket_unittest.cc View 2 chunks +5 lines, -2 lines 1 comment Download

Messages

Total messages: 10 (0 generated)
sehr (please use chromium)
I've added what I think should be a reasonable way to get the number of ...
11 years ago (2009-12-05 00:47:12 UTC) #1
cpu_(ooo_6.6-7.5)
LGTM. In any case wait for evanm feeback since I don't really know unix.
11 years ago (2009-12-05 02:45:21 UTC) #2
John Grabowski
More drive-by since I stalk sehr. 1. change the unit test, added by http://codereview.chromium.org/464020, to ...
11 years ago (2009-12-05 02:51:26 UTC) #3
cpu_(ooo_6.6-7.5)
Forgot to say that you want to enable the unit test in this CL as ...
11 years ago (2009-12-05 02:59:57 UTC) #4
sehr (please use chromium)
On 2009/12/05 02:59:57, cpu wrote: > Forgot to say that you want to enable the ...
11 years ago (2009-12-05 06:44:18 UTC) #5
sehr (please use chromium)
On 2009/12/05 06:44:18, sehr wrote: > On 2009/12/05 02:59:57, cpu wrote: > > Forgot to ...
11 years ago (2009-12-05 16:46:50 UTC) #6
John Grabowski
LGTM from the stalker
11 years ago (2009-12-05 17:36:52 UTC) #7
Evan Martin
seems ok to me http://codereview.chromium.org/468023/diff/3002/3004 File ipc/sync_socket_unittest.cc (right): http://codereview.chromium.org/468023/diff/3002/3004#newcode201 ipc/sync_socket_unittest.cc:201: EXPECT_NE(msg, reinterpret_cast<IPC::Message*>(NULL)); Off-topic, but I ...
11 years ago (2009-12-06 01:45:22 UTC) #8
sehr (please use chromium)
On 2009/12/06 01:45:22, Evan Martin wrote: > seems ok to me > > http://codereview.chromium.org/468023/diff/3002/3004 > ...
11 years ago (2009-12-06 19:40:54 UTC) #9
Evan Martin
11 years ago (2009-12-06 20:55:39 UTC) #10
On 2009/12/06 19:40:54, sehr wrote:
> I agree that out of memory is a much bigger problem.  Is it preferred to
ASSERT
> or just not check?

I'd just not check (we set things up so that we crash immediately when
allocations fail).

Powered by Google App Engine
This is Rietveld 408576698