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

Issue 514293002: Mojo: validate nullability in Java bindings. (Closed)

Created:
6 years, 3 months ago by ppi
Modified:
6 years, 3 months ago
Reviewers:
qsr
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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Mojo: validate nullability in Java bindings. This is the message validation / receiver end side. BUG=324170 Committed: https://crrev.com/72e2f7bbab8a344bec72d2a915504aaf9ac17448 Cr-Commit-Position: refs/heads/master@{#292652}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Rebase. #

Patch Set 3 : Address Ben's comments, express array nullability using flags. #

Patch Set 4 : Rebase over "Refactor method name generation (...)". #

Patch Set 5 : Fix a bug. #

Patch Set 6 : Add example Foo.java. #

Total comments: 10

Patch Set 7 : Address Ben's comments. #

Patch Set 8 : Address a missed comment. #

Patch Set 9 : Update the generated code example. #

Patch Set 10 : Remove the example and fix line length in mojom_java_generator. #

Patch Set 11 : Fix line length in mojom_java_generator in a way that works. #

Messages

Total messages: 26 (0 generated)
ppi
ppi@chromium.org changed reviewers: + qsr@chromium.org
6 years, 3 months ago (2014-08-28 18:37:49 UTC) #1
ppi
Hi Ben, This is WIP, ptal at the question below. https://codereview.chromium.org/514293002/diff/1/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java File mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java (right): https://codereview.chromium.org/514293002/diff/1/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java#newcode413 ...
6 years, 3 months ago (2014-08-28 18:37:49 UTC) #2
qsr
https://chromiumcodereview.appspot.com/514293002/diff/1/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java File mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java (right): https://chromiumcodereview.appspot.com/514293002/diff/1/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java#newcode413 mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java:413: DataHeader.HEADER_SIZE + BindingsHelper.SERIALIZED_HANDLE_SIZE * i, true); On 2014/08/28 18:37:49, ...
6 years, 3 months ago (2014-08-29 07:56:20 UTC) #3
ppi
Patchset #3 (id:40001) has been deleted
6 years, 3 months ago (2014-08-29 13:04:04 UTC) #4
ppi
Patchset #5 (id:100001) has been deleted
6 years, 3 months ago (2014-08-29 13:25:45 UTC) #5
ppi
Thanks, ptal. https://chromiumcodereview.appspot.com/514293002/diff/1/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java File mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java (right): https://chromiumcodereview.appspot.com/514293002/diff/1/mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java#newcode413 mojo/public/java/bindings/src/org/chromium/mojo/bindings/Decoder.java:413: DataHeader.HEADER_SIZE + BindingsHelper.SERIALIZED_HANDLE_SIZE * i, true); On ...
6 years, 3 months ago (2014-08-29 14:03:34 UTC) #6
qsr
You probably want to write some tests. Encoding won't be handled by the cross platform ...
6 years, 3 months ago (2014-08-29 14:17:57 UTC) #7
qsr
Hum... Ok, I'm stupid. This is the deserialization side. It will be handles by the ...
6 years, 3 months ago (2014-08-29 14:18:46 UTC) #8
ppi
Thanks, ptal. https://chromiumcodereview.appspot.com/514293002/diff/140001/mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java File mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java (right): https://chromiumcodereview.appspot.com/514293002/diff/140001/mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java#newcode70 mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java:70: { true, false, true }, { }, ...
6 years, 3 months ago (2014-08-29 14:35:49 UTC) #9
ppi
Ptal. https://chromiumcodereview.appspot.com/514293002/diff/140001/do_not_commit/Foo.java File do_not_commit/Foo.java (right): https://chromiumcodereview.appspot.com/514293002/diff/140001/do_not_commit/Foo.java#newcode76 do_not_commit/Foo.java:76: result.data = decoder0.readBytes(32, org.chromium.mojo.bindings.Decoder.ARRAY_NULLABLE); On 2014/08/29 14:17:57, qsr ...
6 years, 3 months ago (2014-08-29 14:46:49 UTC) #10
qsr
lgtm
6 years, 3 months ago (2014-08-29 14:49:46 UTC) #11
ppi
Thanks!
6 years, 3 months ago (2014-08-29 14:53:59 UTC) #12
ppi
The CQ bit was checked by ppi@chromium.org
6 years, 3 months ago (2014-08-29 14:54:03 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ppi@chromium.org/514293002/220001
6 years, 3 months ago (2014-08-29 14:55:01 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 3 months ago (2014-08-29 15:09:09 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-29 15:11:53 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/7051) mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/8466)
6 years, 3 months ago (2014-08-29 15:11:54 UTC) #17
ppi
The CQ bit was checked by ppi@chromium.org
6 years, 3 months ago (2014-08-29 15:15:27 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ppi@chromium.org/514293002/230001
6 years, 3 months ago (2014-08-29 15:16:10 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_dbg_simulator on tryserver.chromium.mac ...
6 years, 3 months ago (2014-08-29 16:10:27 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-29 16:21:45 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/10459)
6 years, 3 months ago (2014-08-29 16:21:48 UTC) #22
qsr
The CQ bit was checked by qsr@chromium.org
6 years, 3 months ago (2014-08-29 16:24:39 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ppi@chromium.org/514293002/230001
6 years, 3 months ago (2014-08-29 16:25:12 UTC) #24
commit-bot: I haz the power
Committed patchset #11 (id:230001) as 97f112b52a359bd381d87c225cc733523ad2bb98
6 years, 3 months ago (2014-08-29 16:39:34 UTC) #25
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:09:16 UTC) #26
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/72e2f7bbab8a344bec72d2a915504aaf9ac17448
Cr-Commit-Position: refs/heads/master@{#292652}

Powered by Google App Engine
This is Rietveld 408576698