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

Unified Diff: mojo/public/cpp/bindings/tests/sample_service_unittest.cc

Issue 396063006: Mojo: Always suffix int literals with L in generated Java bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: -1L Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/public/cpp/bindings/tests/sample_service_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/sample_service_unittest.cc b/mojo/public/cpp/bindings/tests/sample_service_unittest.cc
index 156f7a5157cdc3e8404834f4eeaf7b16924acc41..e27512cbf68ec170a38450addcd939444de5cbc7 100644
--- a/mojo/public/cpp/bindings/tests/sample_service_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/sample_service_unittest.cc
@@ -354,7 +354,7 @@ TEST_F(BindingsSampleTest, DefaultValues) {
EXPECT_EQ(34567U, defaults->a3);
EXPECT_EQ(123456, defaults->a4);
EXPECT_EQ(3456789012U, defaults->a5);
- EXPECT_EQ(111111111111LL, defaults->a6);
+ EXPECT_EQ(-111111111111LL, defaults->a6);
EXPECT_EQ(9999999999999999999ULL, defaults->a7);
EXPECT_EQ(0x12345, defaults->a8);
EXPECT_EQ(-0x12345, defaults->a9);
@@ -373,6 +373,9 @@ TEST_F(BindingsSampleTest, DefaultValues) {
ASSERT_FALSE(defaults->a22.is_null());
EXPECT_EQ(imported::SHAPE_RECTANGLE, defaults->a22->shape);
EXPECT_EQ(imported::COLOR_BLACK, defaults->a22->color);
+ EXPECT_EQ(0xFFFFFFFFFFFFFFFFULL, defaults->a23);
+ EXPECT_EQ(0x123456789, defaults->a24);
+ EXPECT_EQ(-0x123456789, defaults->a25);
}
} // namespace
« no previous file with comments | « mojo/apps/js/bindings/sample_service_unittests.js ('k') | mojo/public/interfaces/bindings/tests/sample_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698