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

Unified Diff: mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/validation_test_interfaces.mojom.dart

Issue 1433183002: Generate Mojom Types for Dart (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Simplify identifier_store for Go and Dart Created 5 years, 1 month 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/dart/packages/_mojo_for_test_only/lib/mojo/test/validation_test_interfaces.mojom.dart
diff --git a/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/validation_test_interfaces.mojom.dart b/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/validation_test_interfaces.mojom.dart
index 1ecf562618a2ec0ea669386ea8cdb63353b75b07..b04fdbea5b80aaca23231fb618b0de3a19dd8eec 100644
--- a/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/validation_test_interfaces.mojom.dart
+++ b/mojo/dart/packages/_mojo_for_test_only/lib/mojo/test/validation_test_interfaces.mojom.dart
@@ -8,6 +8,8 @@ import 'dart:async';
import 'package:mojo/bindings.dart' as bindings;
import 'package:mojo/core.dart' as core;
+import 'package:mojo/mojo/mojom_types.mojom.dart' as mojom_types;
+import 'package:mojo/mojo/service_describer.mojom.dart' as service_describer;
class BasicEnum extends bindings.MojoEnum {
static const A = const BasicEnum._(0);
static const B = const BasicEnum._(1);
@@ -73,12 +75,35 @@ class BasicEnum extends bindings.MojoEnum {
return 'BasicEnum.D';
case E:
return 'BasicEnum.E';
+ default:
+ return null;
}
}
int toJson() => value;
}
+mojom_types.MojomEnum _validation_test_interfaces_BasicEnum__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "BasicEnum")
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "A")
+ ..enumTypeKey = '_validation_test_interfaces_BasicEnum__'
+ ..intValue = 0,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "B")
+ ..enumTypeKey = '_validation_test_interfaces_BasicEnum__'
+ ..intValue = 1,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "C")
+ ..enumTypeKey = '_validation_test_interfaces_BasicEnum__'
+ ..intValue = 0,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "D")
+ ..enumTypeKey = '_validation_test_interfaces_BasicEnum__'
+ ..intValue = -3,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "E")
+ ..enumTypeKey = '_validation_test_interfaces_BasicEnum__'
+ ..intValue = 10,];
+}
+
class StructA extends bindings.Struct {
@@ -147,6 +172,16 @@ class StructA extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_StructA__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'StructA')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'I')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT64),
+ ];
+}
+
class StructB extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -215,6 +250,21 @@ class StructB extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_StructB__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'StructB')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'StructA')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_StructA__'
+ ..typeKey = '_validation_test_interfaces_StructA__'
+ )),
+ ];
+}
+
class StructC extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -282,6 +332,17 @@ class StructC extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_StructC__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'StructC')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Data')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT8))),
+ ];
+}
+
class StructD extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -348,6 +409,20 @@ class StructD extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_StructD__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'StructD')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'MessagePipes')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()
+..handleType = (new mojom_types.HandleType()
+..kind = mojom_types.HandleTypeKind.MESSAGE_PIPE
+..nullable = false)))),
+ ];
+}
+
class StructE extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -423,6 +498,28 @@ class StructE extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_StructE__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'StructE')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'StructD')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_StructD__'
+ ..typeKey = '_validation_test_interfaces_StructD__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'DataPipeConsumer')
+ ..type = (new mojom_types.Type()
+..handleType = (new mojom_types.HandleType()
+..kind = mojom_types.HandleTypeKind.DATA_PIPE_CONSUMER
+..nullable = false)),
+ ];
+}
+
class StructF extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -490,6 +587,17 @@ class StructF extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_StructF__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'StructF')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'FixedSizeArray')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()..fixedLength = 3
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT8))),
+ ];
+}
+
class StructG extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -587,6 +695,36 @@ class StructG extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_StructG__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'StructG')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'I')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.INT32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'StructA')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_validation_test_interfaces_StructA__'
+ ..typeKey = '_validation_test_interfaces_StructA__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Str')
+ ..type = (new mojom_types.Type()
+..stringType = (new mojom_types.StringType()..nullable = true)),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'B')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.BOOL),
+ ];
+}
+
class StructH extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -758,6 +896,56 @@ class StructH extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_StructH__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'StructH')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'A')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.BOOL),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'B')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT8),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'C')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_validation_test_interfaces_UnionA__'
+ ..typeKey = '_validation_test_interfaces_UnionA__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'D')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..nullable = true
+
+ ..elementType = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_UnionA__'
+ ..typeKey = '_validation_test_interfaces_UnionA__'
+ )))),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'E')
+ ..type = (new mojom_types.Type()..mapType = (new mojom_types.MapType()
+ ..nullable = true
+
+ ..keyType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT8)
+ ..valueType = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_UnionA__'
+ ..typeKey = '_validation_test_interfaces_UnionA__'
+ )))),
+ ];
+}
+
class BasicStruct extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -825,6 +1013,16 @@ class BasicStruct extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_BasicStruct__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'BasicStruct')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'A')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.INT32),
+ ];
+}
+
class StructWithEnumEnumWithin extends bindings.MojoEnum {
static const A = const StructWithEnumEnumWithin._(0);
static const B = const StructWithEnumEnumWithin._(1);
@@ -883,12 +1081,32 @@ class StructWithEnumEnumWithin extends bindings.MojoEnum {
return 'StructWithEnumEnumWithin.C';
case D:
return 'StructWithEnumEnumWithin.D';
+ default:
+ return null;
}
}
int toJson() => value;
}
+mojom_types.MojomEnum _validation_test_interfaces_EnumWithin__() {
+ return new mojom_types.MojomEnum()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "StructWithEnumEnumWithin")
+ ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "A")
+ ..enumTypeKey = '_validation_test_interfaces_EnumWithin__'
+ ..intValue = 0,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "B")
+ ..enumTypeKey = '_validation_test_interfaces_EnumWithin__'
+ ..intValue = 1,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "C")
+ ..enumTypeKey = '_validation_test_interfaces_EnumWithin__'
+ ..intValue = 2,new mojom_types.EnumValue()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "D")
+ ..enumTypeKey = '_validation_test_interfaces_EnumWithin__'
+ ..intValue = 3,];
+}
+
class StructWithEnum extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(8, 0)
@@ -946,6 +1164,12 @@ class StructWithEnum extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_StructWithEnum__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'StructWithEnum')
+ ..fields = <mojom_types.StructField>[];
+}
+
class BoundsCheckTestInterfaceMethod0Params extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -1013,6 +1237,16 @@ class BoundsCheckTestInterfaceMethod0Params extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_BoundsCheckTestInterface_Method0_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'BoundsCheckTestInterfaceMethod0Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT8),
+ ];
+}
+
class BoundsCheckTestInterfaceMethod0ResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -1080,6 +1314,16 @@ class BoundsCheckTestInterfaceMethod0ResponseParams extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_BoundsCheckTestInterface_Method0_ResponseParams__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'BoundsCheckTestInterfaceMethod0ResponseParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT8),
+ ];
+}
+
class BoundsCheckTestInterfaceMethod1Params extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -1147,6 +1391,16 @@ class BoundsCheckTestInterfaceMethod1Params extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_BoundsCheckTestInterface_Method1_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'BoundsCheckTestInterfaceMethod1Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT8),
+ ];
+}
+
class ConformanceTestInterfaceMethod0Params extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -1214,6 +1468,16 @@ class ConformanceTestInterfaceMethod0Params extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method0_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ConformanceTestInterfaceMethod0Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.FLOAT),
+ ];
+}
+
class ConformanceTestInterfaceMethod1Params extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -1282,6 +1546,21 @@ class ConformanceTestInterfaceMethod1Params extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method1_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ConformanceTestInterfaceMethod1Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_StructA__'
+ ..typeKey = '_validation_test_interfaces_StructA__'
+ )),
+ ];
+}
+
class ConformanceTestInterfaceMethod2Params extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -1360,6 +1639,30 @@ class ConformanceTestInterfaceMethod2Params extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method2_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ConformanceTestInterfaceMethod2Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_StructB__'
+ ..typeKey = '_validation_test_interfaces_StructB__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param1')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_StructA__'
+ ..typeKey = '_validation_test_interfaces_StructA__'
+ )),
+ ];
+}
+
class ConformanceTestInterfaceMethod3Params extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -1427,6 +1730,17 @@ class ConformanceTestInterfaceMethod3Params extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method3_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ConformanceTestInterfaceMethod3Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.BOOL))),
+ ];
+}
+
class ConformanceTestInterfaceMethod4Params extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -1504,6 +1818,26 @@ class ConformanceTestInterfaceMethod4Params extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method4_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ConformanceTestInterfaceMethod4Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_StructC__'
+ ..typeKey = '_validation_test_interfaces_StructC__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param1')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT8))),
+ ];
+}
+
class ConformanceTestInterfaceMethod5Params extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -1579,6 +1913,28 @@ class ConformanceTestInterfaceMethod5Params extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method5_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ConformanceTestInterfaceMethod5Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_StructE__'
+ ..typeKey = '_validation_test_interfaces_StructE__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param1')
+ ..type = (new mojom_types.Type()
+..handleType = (new mojom_types.HandleType()
+..kind = mojom_types.HandleTypeKind.DATA_PIPE_PRODUCER
+..nullable = false)),
+ ];
+}
+
class ConformanceTestInterfaceMethod6Params extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -1662,6 +2018,18 @@ class ConformanceTestInterfaceMethod6Params extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method6_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ConformanceTestInterfaceMethod6Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT8))))),
+ ];
+}
+
class ConformanceTestInterfaceMethod7Params extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -1755,6 +2123,29 @@ class ConformanceTestInterfaceMethod7Params extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method7_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ConformanceTestInterfaceMethod7Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_StructF__'
+ ..typeKey = '_validation_test_interfaces_StructF__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param1')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()..fixedLength = 2
+ ..elementType = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..nullable = true
+ ..fixedLength = 3
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT8))))),
+ ];
+}
+
class ConformanceTestInterfaceMethod8Params extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -1856,6 +2247,21 @@ class ConformanceTestInterfaceMethod8Params extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method8_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ConformanceTestInterfaceMethod8Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..nullable = true
+
+ ..elementType = (new mojom_types.Type()
+..stringType = (new mojom_types.StringType()..nullable = false)))))),
+ ];
+}
+
class ConformanceTestInterfaceMethod9Params extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -1940,6 +2346,23 @@ class ConformanceTestInterfaceMethod9Params extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method9_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ConformanceTestInterfaceMethod9Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..nullable = true
+
+ ..elementType = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()
+..handleType = (new mojom_types.HandleType()
+..kind = mojom_types.HandleTypeKind.UNSPECIFIED
+..nullable = true)))))),
+ ];
+}
+
class ConformanceTestInterfaceMethod10Params extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -2047,6 +2470,19 @@ class ConformanceTestInterfaceMethod10Params extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method10_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ConformanceTestInterfaceMethod10Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()..mapType = (new mojom_types.MapType()
+ ..keyType = (new mojom_types.Type()
+..stringType = (new mojom_types.StringType()..nullable = false))
+ ..valueType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT8))),
+ ];
+}
+
class ConformanceTestInterfaceMethod11Params extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -2115,6 +2551,21 @@ class ConformanceTestInterfaceMethod11Params extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method11_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ConformanceTestInterfaceMethod11Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_StructG__'
+ ..typeKey = '_validation_test_interfaces_StructG__'
+ )),
+ ];
+}
+
class ConformanceTestInterfaceMethod12Params extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -2182,6 +2633,16 @@ class ConformanceTestInterfaceMethod12Params extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method12_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ConformanceTestInterfaceMethod12Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.FLOAT),
+ ];
+}
+
class ConformanceTestInterfaceMethod12ResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -2249,6 +2710,16 @@ class ConformanceTestInterfaceMethod12ResponseParams extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method12_ResponseParams__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ConformanceTestInterfaceMethod12ResponseParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.FLOAT),
+ ];
+}
+
class ConformanceTestInterfaceMethod13Params extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -2331,6 +2802,38 @@ class ConformanceTestInterfaceMethod13Params extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method13_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ConformanceTestInterfaceMethod13Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_validation_test_interfaces_InterfaceA__'
+ ..typeKey = '_validation_test_interfaces_InterfaceA__'
+ )),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param1')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT32),
+
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param2')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_validation_test_interfaces_InterfaceA__'
+ ..typeKey = '_validation_test_interfaces_InterfaceA__'
+ )),
+ ];
+}
+
class ConformanceTestInterfaceMethod14Params extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -2402,6 +2905,21 @@ class ConformanceTestInterfaceMethod14Params extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method14_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ConformanceTestInterfaceMethod14Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_UnionA__'
+ ..typeKey = '_validation_test_interfaces_UnionA__'
+ )),
+ ];
+}
+
class ConformanceTestInterfaceMethod15Params extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -2470,6 +2988,21 @@ class ConformanceTestInterfaceMethod15Params extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_ConformanceTestInterface_Method15_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ConformanceTestInterfaceMethod15Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_StructH__'
+ ..typeKey = '_validation_test_interfaces_StructH__'
+ )),
+ ];
+}
+
class IntegrationTestInterfaceMethod0Params extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -2538,6 +3071,21 @@ class IntegrationTestInterfaceMethod0Params extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_IntegrationTestInterface_Method0_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'IntegrationTestInterfaceMethod0Params')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_BasicStruct__'
+ ..typeKey = '_validation_test_interfaces_BasicStruct__'
+ )),
+ ];
+}
+
class IntegrationTestInterfaceMethod0ResponseParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
@@ -2605,6 +3153,17 @@ class IntegrationTestInterfaceMethod0ResponseParams extends bindings.Struct {
}
}
+mojom_types.MojomStruct _validation_test_interfaces_IntegrationTestInterface_Method0_ResponseParams__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'IntegrationTestInterfaceMethod0ResponseParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Param0')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT8))),
+ ];
+}
+
enum UnionATag {
@@ -2770,7 +3329,7 @@ class UnionA extends bindings.Union {
}
UnionA result = new UnionA();
- // TODO(azani): Handle unknown union member.
+ // TODO(azani): Handle unknown union member. An assert breaks validation_unittest.
UnionATag tag = _int_to_tag[decoder0.decodeUint32(offset + 4)];
switch (tag) {
case UnionATag.a:
@@ -2863,6 +3422,8 @@ class UnionA extends bindings.Union {
var decoder1 = decoder0.decodePointer(offset + 8, false);
result.j = UnionB.decode(decoder1, 0);
break;
+ default:
+ break;
}
return result;
@@ -2945,6 +3506,8 @@ class UnionA extends bindings.Union {
case UnionATag.j:
encoder0.encodeNestedUnion(j, offset + 8, false);
break;
+ default:
+ break;
}
}
@@ -2989,6 +3552,98 @@ class UnionA extends bindings.Union {
}
}
+mojom_types.MojomUnion _validation_test_interfaces_UnionA__() {
+ return new mojom_types.MojomUnion()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'UnionA')
+ ..fields = <mojom_types.UnionField>[
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'A')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT16)
+ ..tag = 0,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'B')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT32)
+ ..tag = 1,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'C')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_validation_test_interfaces_StructA__'
+ ..typeKey = '_validation_test_interfaces_StructA__'
+ ))
+ ..tag = 2,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'D')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..nullable = true
+
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT8)))
+ ..tag = 3,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'E')
+ ..type = (new mojom_types.Type()..mapType = (new mojom_types.MapType()
+ ..nullable = true
+
+ ..keyType = (new mojom_types.Type()
+..stringType = (new mojom_types.StringType()..nullable = false))
+ ..valueType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT8)))
+ ..tag = 4,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'F')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+ ..nullable = true
+
+
+ ..identifier = '_validation_test_interfaces_UnionB__'
+ ..typeKey = '_validation_test_interfaces_UnionB__'
+ ))
+ ..tag = 5,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'G')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_StructA__'
+ ..typeKey = '_validation_test_interfaces_StructA__'
+ ))
+ ..tag = 6,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'H')
+ ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
+ ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT8)))
+ ..tag = 7,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'I')
+ ..type = (new mojom_types.Type()..mapType = (new mojom_types.MapType()
+ ..keyType = (new mojom_types.Type()
+..stringType = (new mojom_types.StringType()..nullable = false))
+ ..valueType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT8)))
+ ..tag = 8,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'J')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_validation_test_interfaces_UnionB__'
+ ..typeKey = '_validation_test_interfaces_UnionB__'
+ ))
+ ..tag = 9,
+ ];
+}
+
enum UnionBTag {
a,
@@ -3069,7 +3724,7 @@ class UnionB extends bindings.Union {
}
UnionB result = new UnionB();
- // TODO(azani): Handle unknown union member.
+ // TODO(azani): Handle unknown union member. An assert breaks validation_unittest.
UnionBTag tag = _int_to_tag[decoder0.decodeUint32(offset + 4)];
switch (tag) {
case UnionBTag.a:
@@ -3088,6 +3743,8 @@ class UnionB extends bindings.Union {
result.d = decoder0.decodeUint32(offset + 8);
break;
+ default:
+ break;
}
return result;
@@ -3114,6 +3771,8 @@ class UnionB extends bindings.Union {
encoder0.encodeUint32(d, offset + 8);
break;
+ default:
+ break;
}
}
@@ -3140,9 +3799,59 @@ class UnionB extends bindings.Union {
}
}
+mojom_types.MojomUnion _validation_test_interfaces_UnionB__() {
+ return new mojom_types.MojomUnion()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'UnionB')
+ ..fields = <mojom_types.UnionField>[
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'A')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT16)
+ ..tag = 0,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'B')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT32)
+ ..tag = 1,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'C')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT64)
+ ..tag = 2,
+
+ new mojom_types.UnionField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'D')
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UINT32)
+ ..tag = 3,
+ ];
+}
+
+
const String InterfaceAName =
'mojo::test::InterfaceA';
+mojom_types.MojomInterface _validation_test_interfaces_InterfaceA__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "InterfaceA")
+ ..interfaceName = "InterfaceA"
+ ..methods = <int, mojom_types.MojomMethod>{
+
+ };
+}
+
+class _InterfaceAServiceDescription extends service_describer.ServiceDescription {
+ // Avoid infinite loop by overriding serviceDescription field.
+ final service_describer.ServiceDescription serviceDescription = null;
+dynamic getTopLevelInterface([Function responseFactory = null]) {
+ return _validation_test_interfaces_InterfaceA__();
+ }
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions()[typeKey];
+ }
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions();
+ }
+}
+
abstract class InterfaceA {
}
@@ -3165,6 +3874,9 @@ class InterfaceAProxyImpl extends bindings.Proxy {
String get name => InterfaceAName;
+ service_describer.ServiceDescription get serviceDescription =>
+ new _InterfaceAServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
default:
@@ -3295,6 +4007,9 @@ class InterfaceAStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _InterfaceAServiceDescription();
}
const int kBoundsCheckTestInterface_method0_name = 0;
@@ -3303,6 +4018,34 @@ const int kBoundsCheckTestInterface_method1_name = 1;
const String BoundsCheckTestInterfaceName =
'mojo::test::BoundsCheckTestInterface';
+mojom_types.MojomInterface _validation_test_interfaces_BoundsCheckTestInterface__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "BoundsCheckTestInterface")
+ ..interfaceName = "BoundsCheckTestInterface"
+ ..methods = <int, mojom_types.MojomMethod>{
+kBoundsCheckTestInterface_method0_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Method0")
+ ..ordinal = kBoundsCheckTestInterface_method0_name
+ ..responseParams = _validation_test_interfaces_BoundsCheckTestInterface_Method0_ResponseParams__()..parameters = _validation_test_interfaces_BoundsCheckTestInterface_Method0_Params__(),kBoundsCheckTestInterface_method1_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Method1")
+ ..ordinal = kBoundsCheckTestInterface_method1_name..parameters = _validation_test_interfaces_BoundsCheckTestInterface_Method1_Params__(),
+ };
+}
+
+class _BoundsCheckTestInterfaceServiceDescription extends service_describer.ServiceDescription {
+ // Avoid infinite loop by overriding serviceDescription field.
+ final service_describer.ServiceDescription serviceDescription = null;
+dynamic getTopLevelInterface([Function responseFactory = null]) {
+ return _validation_test_interfaces_BoundsCheckTestInterface__();
+ }
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions()[typeKey];
+ }
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions();
+ }
+}
+
abstract class BoundsCheckTestInterface {
dynamic method0(int param0,[Function responseFactory = null]);
void method1(int param0);
@@ -3327,6 +4070,9 @@ class BoundsCheckTestInterfaceProxyImpl extends bindings.Proxy {
String get name => BoundsCheckTestInterfaceName;
+ service_describer.ServiceDescription get serviceDescription =>
+ new _BoundsCheckTestInterfaceServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
case kBoundsCheckTestInterface_method0_name:
@@ -3528,6 +4274,9 @@ class BoundsCheckTestInterfaceStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _BoundsCheckTestInterfaceServiceDescription();
}
const int kConformanceTestInterface_method0_name = 0;
@@ -3550,6 +4299,62 @@ const int kConformanceTestInterface_method15_name = 15;
const String ConformanceTestInterfaceName =
'mojo::test::ConformanceTestInterface';
+mojom_types.MojomInterface _validation_test_interfaces_ConformanceTestInterface__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "ConformanceTestInterface")
+ ..interfaceName = "ConformanceTestInterface"
+ ..methods = <int, mojom_types.MojomMethod>{
+kConformanceTestInterface_method0_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Method0")
+ ..ordinal = kConformanceTestInterface_method0_name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method0_Params__(),kConformanceTestInterface_method1_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Method1")
+ ..ordinal = kConformanceTestInterface_method1_name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method1_Params__(),kConformanceTestInterface_method2_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Method2")
+ ..ordinal = kConformanceTestInterface_method2_name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method2_Params__(),kConformanceTestInterface_method3_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Method3")
+ ..ordinal = kConformanceTestInterface_method3_name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method3_Params__(),kConformanceTestInterface_method4_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Method4")
+ ..ordinal = kConformanceTestInterface_method4_name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method4_Params__(),kConformanceTestInterface_method5_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Method5")
+ ..ordinal = kConformanceTestInterface_method5_name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method5_Params__(),kConformanceTestInterface_method6_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Method6")
+ ..ordinal = kConformanceTestInterface_method6_name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method6_Params__(),kConformanceTestInterface_method7_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Method7")
+ ..ordinal = kConformanceTestInterface_method7_name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method7_Params__(),kConformanceTestInterface_method8_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Method8")
+ ..ordinal = kConformanceTestInterface_method8_name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method8_Params__(),kConformanceTestInterface_method9_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Method9")
+ ..ordinal = kConformanceTestInterface_method9_name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method9_Params__(),kConformanceTestInterface_method10_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Method10")
+ ..ordinal = kConformanceTestInterface_method10_name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method10_Params__(),kConformanceTestInterface_method11_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Method11")
+ ..ordinal = kConformanceTestInterface_method11_name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method11_Params__(),kConformanceTestInterface_method12_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Method12")
+ ..ordinal = kConformanceTestInterface_method12_name
+ ..responseParams = _validation_test_interfaces_ConformanceTestInterface_Method12_ResponseParams__()..parameters = _validation_test_interfaces_ConformanceTestInterface_Method12_Params__(),kConformanceTestInterface_method13_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Method13")
+ ..ordinal = kConformanceTestInterface_method13_name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method13_Params__(),kConformanceTestInterface_method14_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Method14")
+ ..ordinal = kConformanceTestInterface_method14_name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method14_Params__(),kConformanceTestInterface_method15_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Method15")
+ ..ordinal = kConformanceTestInterface_method15_name..parameters = _validation_test_interfaces_ConformanceTestInterface_Method15_Params__(),
+ };
+}
+
+class _ConformanceTestInterfaceServiceDescription extends service_describer.ServiceDescription {
+ // Avoid infinite loop by overriding serviceDescription field.
+ final service_describer.ServiceDescription serviceDescription = null;
+dynamic getTopLevelInterface([Function responseFactory = null]) {
+ return _validation_test_interfaces_ConformanceTestInterface__();
+ }
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions()[typeKey];
+ }
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions();
+ }
+}
+
abstract class ConformanceTestInterface {
void method0(double param0);
void method1(StructA param0);
@@ -3588,6 +4393,9 @@ class ConformanceTestInterfaceProxyImpl extends bindings.Proxy {
String get name => ConformanceTestInterfaceName;
+ service_describer.ServiceDescription get serviceDescription =>
+ new _ConformanceTestInterfaceServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
case kConformanceTestInterface_method12_name:
@@ -4005,6 +4813,9 @@ class ConformanceTestInterfaceStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _ConformanceTestInterfaceServiceDescription();
}
const int kIntegrationTestInterface_method0_name = 0;
@@ -4012,6 +4823,32 @@ const int kIntegrationTestInterface_method0_name = 0;
const String IntegrationTestInterfaceName =
'mojo::test::IntegrationTestInterface';
+mojom_types.MojomInterface _validation_test_interfaces_IntegrationTestInterface__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "IntegrationTestInterface")
+ ..interfaceName = "IntegrationTestInterface"
+ ..methods = <int, mojom_types.MojomMethod>{
+kIntegrationTestInterface_method0_name: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = "Method0")
+ ..ordinal = kIntegrationTestInterface_method0_name
+ ..responseParams = _validation_test_interfaces_IntegrationTestInterface_Method0_ResponseParams__()..parameters = _validation_test_interfaces_IntegrationTestInterface_Method0_Params__(),
+ };
+}
+
+class _IntegrationTestInterfaceServiceDescription extends service_describer.ServiceDescription {
+ // Avoid infinite loop by overriding serviceDescription field.
+ final service_describer.ServiceDescription serviceDescription = null;
+dynamic getTopLevelInterface([Function responseFactory = null]) {
+ return _validation_test_interfaces_IntegrationTestInterface__();
+ }
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions()[typeKey];
+ }
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions();
+ }
+}
+
abstract class IntegrationTestInterface {
dynamic method0(BasicStruct param0,[Function responseFactory = null]);
@@ -4035,6 +4872,9 @@ class IntegrationTestInterfaceProxyImpl extends bindings.Proxy {
String get name => IntegrationTestInterfaceName;
+ service_describer.ServiceDescription get serviceDescription =>
+ new _IntegrationTestInterfaceServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
case kIntegrationTestInterface_method0_name:
@@ -4221,6 +5061,374 @@ class IntegrationTestInterfaceStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _IntegrationTestInterfaceServiceDescription();
+}
+
+
+
+
+
+
+
+
+var _MojomDesc__ = _initDescriptions();
+
+Map<String, mojom_types.UserDefinedType> _initDescriptions() {
+ var map = new Map<String, mojom_types.UserDefinedType>();
+
+ map["_validation_test_interfaces_BasicEnum__"] =
+ new mojom_types.UserDefinedType()
+ ..enumType = _validation_test_interfaces_BasicEnum__();
+
+
+ map["_validation_test_interfaces_StructA__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_StructA__();
+
+
+
+
+
+ map["_validation_test_interfaces_StructB__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_StructB__();
+
+
+
+
+
+ map["_validation_test_interfaces_StructC__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_StructC__();
+
+
+
+
+
+ map["_validation_test_interfaces_StructD__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_StructD__();
+
+
+
+
+
+ map["_validation_test_interfaces_StructE__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_StructE__();
+
+
+
+
+
+
+
+ map["_validation_test_interfaces_StructF__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_StructF__();
+
+
+
+
+
+ map["_validation_test_interfaces_StructG__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_StructG__();
+
+
+
+
+
+
+
+
+
+
+
+ map["_validation_test_interfaces_StructH__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_StructH__();
+
+
+
+
+
+
+ map["_validation_test_interfaces_UnionA__"] =
+ new mojom_types.UserDefinedType()
+ ..unionType = _validation_test_interfaces_UnionA__();
+
+
+
+
+
+
+
+
+
+
+
+
+ map["_validation_test_interfaces_UnionB__"] =
+ new mojom_types.UserDefinedType()
+ ..unionType = _validation_test_interfaces_UnionB__();
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ map["_validation_test_interfaces_BasicStruct__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_BasicStruct__();
+
+
+
+
+
+ map["_validation_test_interfaces_StructWithEnum__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_StructWithEnum__();
+
+
+
+ map["_validation_test_interfaces_BoundsCheckTestInterface_Method0_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_BoundsCheckTestInterface_Method0_Params__();
+
+
+
+
+
+ map["_validation_test_interfaces_BoundsCheckTestInterface_Method0_ResponseParams__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_BoundsCheckTestInterface_Method0_ResponseParams__();
+
+
+
+
+
+ map["_validation_test_interfaces_BoundsCheckTestInterface_Method1_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_BoundsCheckTestInterface_Method1_Params__();
+
+
+
+
+
+ map["_validation_test_interfaces_ConformanceTestInterface_Method0_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method0_Params__();
+
+
+
+
+
+ map["_validation_test_interfaces_ConformanceTestInterface_Method1_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method1_Params__();
+
+
+
+
+
+ map["_validation_test_interfaces_ConformanceTestInterface_Method2_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method2_Params__();
+
+
+
+
+
+
+
+ map["_validation_test_interfaces_ConformanceTestInterface_Method3_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method3_Params__();
+
+
+
+
+
+ map["_validation_test_interfaces_ConformanceTestInterface_Method4_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method4_Params__();
+
+
+
+
+
+
+
+ map["_validation_test_interfaces_ConformanceTestInterface_Method5_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method5_Params__();
+
+
+
+
+
+
+
+ map["_validation_test_interfaces_ConformanceTestInterface_Method6_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method6_Params__();
+
+
+
+
+
+ map["_validation_test_interfaces_ConformanceTestInterface_Method7_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method7_Params__();
+
+
+
+
+
+
+
+ map["_validation_test_interfaces_ConformanceTestInterface_Method8_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method8_Params__();
+
+
+
+
+
+ map["_validation_test_interfaces_ConformanceTestInterface_Method9_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method9_Params__();
+
+
+
+
+
+ map["_validation_test_interfaces_ConformanceTestInterface_Method10_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method10_Params__();
+
+
+
+
+
+ map["_validation_test_interfaces_ConformanceTestInterface_Method11_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method11_Params__();
+
+
+
+
+
+ map["_validation_test_interfaces_ConformanceTestInterface_Method12_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method12_Params__();
+
+
+
+
+
+ map["_validation_test_interfaces_ConformanceTestInterface_Method12_ResponseParams__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method12_ResponseParams__();
+
+
+
+
+
+ map["_validation_test_interfaces_ConformanceTestInterface_Method13_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method13_Params__();
+
+
+ map["_validation_test_interfaces_InterfaceA__"] =
+ new mojom_types.UserDefinedType()
+ ..interfaceType = _validation_test_interfaces_InterfaceA__();
+
+
+
+
+
+
+
+
+ map["_validation_test_interfaces_ConformanceTestInterface_Method14_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method14_Params__();
+
+
+
+
+
+ map["_validation_test_interfaces_ConformanceTestInterface_Method15_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_ConformanceTestInterface_Method15_Params__();
+
+
+
+
+
+ map["_validation_test_interfaces_IntegrationTestInterface_Method0_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_IntegrationTestInterface_Method0_Params__();
+
+
+
+
+
+ map["_validation_test_interfaces_IntegrationTestInterface_Method0_ResponseParams__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _validation_test_interfaces_IntegrationTestInterface_Method0_ResponseParams__();
+
+
+
+
+
+
+
+
+ map["_validation_test_interfaces_BoundsCheckTestInterface__"] =
+ new mojom_types.UserDefinedType()
+ ..interfaceType = _validation_test_interfaces_BoundsCheckTestInterface__();
+
+
+ map["_validation_test_interfaces_ConformanceTestInterface__"] =
+ new mojom_types.UserDefinedType()
+ ..interfaceType = _validation_test_interfaces_ConformanceTestInterface__();
+
+
+ map["_validation_test_interfaces_IntegrationTestInterface__"] =
+ new mojom_types.UserDefinedType()
+ ..interfaceType = _validation_test_interfaces_IntegrationTestInterface__();
+
+ return map;
+}
+
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
+ return _MojomDesc__;
}

Powered by Google App Engine
This is Rietveld 408576698