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

Issue 325953006: Add pass operation on handles. (Closed)

Created:
6 years, 6 months ago by qsr
Modified:
6 years, 5 months ago
Reviewers:
viettrungluu, rmcilroy
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Visibility:
Public.

Description

Add pass operation on handles. Also refactor tests to ease closing handles. R=viettrungluu@chromium.org,rmcilroy@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=280215

Patch Set 1 #

Patch Set 2 : Fix handle leak in tests. #

Total comments: 4

Patch Set 3 : Follow review #

Total comments: 2

Patch Set 4 : Follow review #

Patch Set 5 : Fix findbugs issue #

Unified diffs Side-by-side diffs Delta from patch set Stats (+522 lines, -403 lines) Patch
M mojo/android/javatests/src/org/chromium/mojo/HandleMock.java View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M mojo/android/javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java View 1 2 3 4 23 chunks +413 lines, -387 lines 0 comments Download
M mojo/android/system/src/org/chromium/mojo/system/impl/DataPipeConsumerHandleImpl.java View 1 2 1 chunk +9 lines, -1 line 0 comments Download
M mojo/android/system/src/org/chromium/mojo/system/impl/DataPipeProducerHandleImpl.java View 1 2 1 chunk +9 lines, -1 line 0 comments Download
M mojo/android/system/src/org/chromium/mojo/system/impl/MessagePipeHandleImpl.java View 1 2 1 chunk +9 lines, -1 line 0 comments Download
M mojo/android/system/src/org/chromium/mojo/system/impl/SharedBufferHandleImpl.java View 1 2 1 chunk +9 lines, -1 line 0 comments Download
M mojo/android/system/src/org/chromium/mojo/system/impl/UntypedHandleImpl.java View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M mojo/public/java/src/org/chromium/mojo/system/DataPipe.java View 1 2 2 chunks +12 lines, -0 lines 0 comments Download
M mojo/public/java/src/org/chromium/mojo/system/Handle.java View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M mojo/public/java/src/org/chromium/mojo/system/InvalidHandle.java View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M mojo/public/java/src/org/chromium/mojo/system/MessagePipeHandle.java View 1 2 2 chunks +18 lines, -12 lines 0 comments Download
M mojo/public/java/src/org/chromium/mojo/system/SharedBufferHandle.java View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M mojo/public/java/src/org/chromium/mojo/system/UntypedHandle.java View 1 2 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
qsr
6 years, 6 months ago (2014-06-10 13:28:48 UTC) #1
rmcilroy
https://codereview.chromium.org/325953006/diff/20001/mojo/android/javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java File mojo/android/javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java (right): https://codereview.chromium.org/325953006/diff/20001/mojo/android/javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java#newcode438 mojo/android/javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java:438: private static void checkSharing(SharedBufferHandle in, SharedBufferHandle out) { nit ...
6 years, 6 months ago (2014-06-19 12:02:44 UTC) #2
qsr
https://chromiumcodereview.appspot.com/325953006/diff/20001/mojo/public/java/src/org/chromium/mojo/system/Handle.java File mojo/public/java/src/org/chromium/mojo/system/Handle.java (right): https://chromiumcodereview.appspot.com/325953006/diff/20001/mojo/public/java/src/org/chromium/mojo/system/Handle.java#newcode48 mojo/public/java/src/org/chromium/mojo/system/Handle.java:48: * Clone this handle, invalidating this object in the ...
6 years, 6 months ago (2014-06-19 13:39:30 UTC) #3
rmcilroy
On 2014/06/19 13:39:30, qsr wrote: > https://chromiumcodereview.appspot.com/325953006/diff/20001/mojo/public/java/src/org/chromium/mojo/system/Handle.java > File mojo/public/java/src/org/chromium/mojo/system/Handle.java (right): > > https://chromiumcodereview.appspot.com/325953006/diff/20001/mojo/public/java/src/org/chromium/mojo/system/Handle.java#newcode48 > ...
6 years, 6 months ago (2014-06-20 09:54:09 UTC) #4
qsr
https://chromiumcodereview.appspot.com/325953006/diff/20001/mojo/android/javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java File mojo/android/javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java (right): https://chromiumcodereview.appspot.com/325953006/diff/20001/mojo/android/javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java#newcode438 mojo/android/javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java:438: private static void checkSharing(SharedBufferHandle in, SharedBufferHandle out) { On ...
6 years, 6 months ago (2014-06-23 13:25:13 UTC) #5
qsr
gentle ping?
6 years, 6 months ago (2014-06-25 12:19:23 UTC) #6
rmcilroy
Sorry didn't realize you had renamed the methods. Please update the CL description and summary ...
6 years, 6 months ago (2014-06-25 16:55:55 UTC) #7
viettrungluu
Rubberstamp LGTM.
6 years, 6 months ago (2014-06-25 17:18:38 UTC) #8
qsr
https://chromiumcodereview.appspot.com/325953006/diff/40001/mojo/android/javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java File mojo/android/javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java (right): https://chromiumcodereview.appspot.com/325953006/diff/40001/mojo/android/javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java#newcode795 mojo/android/javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java:795: addHandleToClose(handleClone); On 2014/06/25 16:55:55, rmcilroy wrote: > nit - ...
6 years, 6 months ago (2014-06-26 09:37:45 UTC) #9
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 6 months ago (2014-06-26 09:37:49 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/325953006/60001
6 years, 6 months ago (2014-06-26 09:38:29 UTC) #11
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 6 months ago (2014-06-26 10:35:30 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qsr@chromium.org/325953006/80001
6 years, 6 months ago (2014-06-26 10:35:46 UTC) #13
commit-bot: I haz the power
6 years, 5 months ago (2014-06-27 02:53:48 UTC) #14
Message was sent while issue was closed.
Change committed as 280215

Powered by Google App Engine
This is Rietveld 408576698