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

Unified Diff: third_party/mojo/src/mojo/public/interfaces/bindings/tests/test_structs.mojom

Issue 901843003: Update mojo sdk to rev 8d45c89c30b230843c5bd6dd0693a555750946c0 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Partial revert of https://codereview.chromium.org/899993002/ Created 5 years, 10 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
« no previous file with comments | « third_party/mojo/src/mojo/public/go/bindings/util.go ('k') | third_party/mojo/src/mojo/public/tests/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/mojo/src/mojo/public/interfaces/bindings/tests/test_structs.mojom
diff --git a/third_party/mojo/src/mojo/public/interfaces/bindings/tests/test_structs.mojom b/third_party/mojo/src/mojo/public/interfaces/bindings/tests/test_structs.mojom
index 40fa9a6bc74616ffa13a6e42368ff77126572e25..dc4f05ebf7a8d3e2c650a074a46165006231dca6 100644
--- a/third_party/mojo/src/mojo/public/interfaces/bindings/tests/test_structs.mojom
+++ b/third_party/mojo/src/mojo/public/interfaces/bindings/tests/test_structs.mojom
@@ -22,7 +22,7 @@ struct EmptyStruct {
// Used to verify that struct fields which don't specify a default are
// initialized to: false for bool, 0 for numbers, and null for strings,
-// handles, and structs. The "?" nullable suffix shouldn't have any
+// handles, and structs. The "?" nullable suffix shouldn't have any
// impact on initial field values.
struct NoDefaultFieldValues {
@@ -58,7 +58,7 @@ struct NoDefaultFieldValues {
};
// Used to verify that struct fields with an explicit default value
-// are initialized correctly. The "?" nullable suffix shouldn't have any
+// are initialized correctly. The "?" nullable suffix shouldn't have any
// impact on initial field values.
struct DefaultFieldValues {
@@ -140,6 +140,18 @@ struct MapValueTypes {
map<string, array<map<string, string>>> f8;
};
+// Used to verify that various array types can be encoded and decoded
+// successfully.
+
+struct ArrayValueTypes {
+ array<int8> f0;
+ array<int16> f1;
+ array<int32> f2;
+ array<int64> f3;
+ array<float> f4;
+ array<double> f5;
+};
+
// Used to verify that various float and double values can be encoded and
// decoded correctly.
@@ -189,18 +201,18 @@ struct IntegerNumberValues {
const int32 V13 = 1234567890;
const int32 V14 = 2147483647;
- // The limits for JavaScript integers are +/- (2^53 - 1).
+ // The limits for JavaScript integers are +/- (2^53 - 1).
const int64 V15 = -9007199254740991; // Number.MIN_SAFE_INTEGER
const int64 V16 = -1;
const int64 V17 = 0;
const int64 V18 = 1234567890123456;
const int64 V19 = 9007199254740991; // Number.MAX_SAFE_INTEGER
- int8 f0 = V0;
+ int8 f0 = V0;
int8 f1 = V1;
- int8 f2 = V2;
- int8 f3 = V3;
- int8 f4 = V4;
+ int8 f2 = V2;
+ int8 f3 = V3;
+ int8 f4 = V4;
int16 f5 = V5;
int16 f6 = V6;
@@ -237,14 +249,14 @@ struct UnsignedNumberValues {
const uint32 V7 = 1234567890;
const uint32 V8 = 0xFFFFFFFF;
- // The limits for JavaScript integers are +/- (2^53 - 1).
+ // The limits for JavaScript integers are +/- (2^53 - 1).
const uint64 V9 = 0;
const uint64 V10 = 1234567890123456;
const uint64 V11 = 9007199254740991; // Number.MAX_SAFE_INTEGER
- uint8 f0 = V0;
+ uint8 f0 = V0;
uint8 f1 = V1;
- uint8 f2 = V2;
+ uint8 f2 = V2;
uint16 f3 = V3;
uint16 f4 = V4;
« no previous file with comments | « third_party/mojo/src/mojo/public/go/bindings/util.go ('k') | third_party/mojo/src/mojo/public/tests/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698