summaryrefslogtreecommitdiffstats
path: root/mojo/android/javatests
diff options
context:
space:
mode:
authorsammc@chromium.org <sammc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-17 22:15:17 +0000
committersammc@chromium.org <sammc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-17 22:15:17 +0000
commit2ea2726bc048cec3ed9d9df80a5dee8d7a083638 (patch)
tree7cb737798a70e7374820e5d34c3d2e17906496ab /mojo/android/javatests
parentbf60c1e149e8a14eb8f8dddbb7cee5059366b44a (diff)
downloadchromium_src-2ea2726bc048cec3ed9d9df80a5dee8d7a083638.zip
chromium_src-2ea2726bc048cec3ed9d9df80a5dee8d7a083638.tar.gz
chromium_src-2ea2726bc048cec3ed9d9df80a5dee8d7a083638.tar.bz2
Mojo: Always suffix int literals with L in generated Java bindings.
BUG=394186 Review URL: https://codereview.chromium.org/396063006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283903 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/android/javatests')
-rw-r--r--mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java b/mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java
index 0005b07..d26955b2 100644
--- a/mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java
+++ b/mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java
@@ -180,7 +180,7 @@ public class BindingsTest extends TestCase {
checkField(DefaultsTest.class.getField("a3"), short.class, test, (short) 34567);
checkField(DefaultsTest.class.getField("a4"), int.class, test, 123456);
checkField(DefaultsTest.class.getField("a5"), int.class, test, (int) 3456789012L);
- checkField(DefaultsTest.class.getField("a6"), long.class, test, 111111111111L);
+ checkField(DefaultsTest.class.getField("a6"), long.class, test, -111111111111L);
// -8446744073709551617 == 9999999999999999999 - 2 ^ 64.
checkField(DefaultsTest.class.getField("a7"), long.class, test, -8446744073709551617L);
checkField(DefaultsTest.class.getField("a8"), int.class, test, 0x12345);
@@ -200,6 +200,9 @@ public class BindingsTest extends TestCase {
assertNotNull(test.a22);
checkField(DefaultsTest.class.getField("a22"), Thing.class, test, test.a22);
+ checkField(DefaultsTest.class.getField("a23"), long.class, test, -1L);
+ checkField(DefaultsTest.class.getField("a24"), long.class, test, 0x123456789L);
+ checkField(DefaultsTest.class.getField("a25"), long.class, test, -0x123456789L);
}
/**